parent
631ff88451
commit
315f281d6d
|
|
@ -2,6 +2,7 @@ package notmain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
|
@ -87,6 +88,9 @@ func main() {
|
||||||
cmd.FailOnError(err, "failed to load chain.")
|
cmd.FailOnError(err, "failed to load chain.")
|
||||||
issuer := chain[0]
|
issuer := chain[0]
|
||||||
id := issuer.NameID()
|
id := issuer.NameID()
|
||||||
|
if _, exists := bundles[id]; exists {
|
||||||
|
cmd.Fail(fmt.Sprintf("Got multiple chains configured for issuer %q", issuer.Subject.CommonName))
|
||||||
|
}
|
||||||
bundles[id] = publisher.GetCTBundleForChain(chain)
|
bundles[id] = publisher.GetCTBundleForChain(chain)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue