@@ -539,7 +539,10 @@ func (cfg *Config) obtainCert(ctx context.Context, name string, interactive bool
539
539
// try to obtain from each issuer until we succeed
540
540
var issuedCert * IssuedCertificate
541
541
var issuerUsed Issuer
542
+ var issuerKeys []string
542
543
for i , issuer := range issuers {
544
+ issuerKeys = append (issuerKeys , issuer .IssuerKey ())
545
+
543
546
if log != nil {
544
547
log .Debug (fmt .Sprintf ("trying issuer %d/%d" , i + 1 , len (cfg .Issuers )),
545
548
zap .String ("issuer" , issuer .IssuerKey ()))
@@ -576,7 +579,7 @@ func (cfg *Config) obtainCert(ctx context.Context, name string, interactive bool
576
579
cfg .emit (ctx , "cert_failed" , map [string ]any {
577
580
"renewal" : false ,
578
581
"identifier" : name ,
579
- "issuer " : issuerUsed . IssuerKey () ,
582
+ "issuers " : issuerKeys ,
580
583
"error" : err ,
581
584
})
582
585
@@ -603,7 +606,7 @@ func (cfg *Config) obtainCert(ctx context.Context, name string, interactive bool
603
606
cfg .emit (ctx , "cert_obtained" , map [string ]any {
604
607
"renewal" : false ,
605
608
"identifier" : name ,
606
- "issuer" : issuerUsed .IssuerKey (),
609
+ "issuers" : issuerUsed .IssuerKey (),
607
610
"storage_key" : certRes .NamesKey (),
608
611
})
609
612
0 commit comments