Skip to content

Commit

Permalink
log root issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Sep 28, 2024
1 parent 40baa75 commit bd97a0b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/ctsubmit/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ func (d *stageZeroData) stageZero(ctx context.Context, reqBody io.ReadCloser, pr

chain, err := ctfe.ValidateChain(req.Chain, validationOpts)
if err != nil {
return nil, http.StatusBadRequest, fmt.Errorf("unable to validate chain: %w", err)
var base64Array []string
for _, item := range req.Chain {
encoded := base64.StdEncoding.EncodeToString(item)
base64Array = append(base64Array, encoded)
}

return nil, http.StatusBadRequest, fmt.Errorf("unable to validate chain: %w. Chain: %+v", err, base64Array)
}

isPrecert, err := ctfe.IsPrecertificate(chain[0])
Expand Down

0 comments on commit bd97a0b

Please sign in to comment.