Skip to content

Commit

Permalink
Send precerts to informational logs if feature is enabled (letsencryp…
Browse files Browse the repository at this point in the history
…t#3568)

Send precerts to informational logs if feature is enabled and log errors from submissions to informational logs.
  • Loading branch information
Roland Bracewell Shoemaker authored and cpu committed Mar 16, 2018
1 parent 52dc5dc commit dad6cc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ctpolicy/ctpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,18 @@ func (ctp *CTPolicy) GetSCTs(ctx context.Context, cert core.CertDER) (core.SCTDE
results <- result{sct: sct}
}(i, g)
}
isPrecert := features.Enabled(features.EmbedSCTs)
for _, log := range ctp.informational {
go func(l cmd.LogDescription) {
_, _ = ctp.pub.SubmitToSingleCTWithResult(subCtx, &pubpb.Request{
_, err := ctp.pub.SubmitToSingleCTWithResult(subCtx, &pubpb.Request{
LogURL: &l.URI,
LogPublicKey: &l.Key,
Der: cert,
Precert: &isPrecert,
})
if err != nil {
ctp.log.Warning(fmt.Sprintf("ct submission to informational log %q failed: %s", l.URI, err))
}
}(log)
}

Expand Down

0 comments on commit dad6cc0

Please sign in to comment.