diff --git a/acme/challenge.go b/acme/challenge.go index 143be1d3..8b3778e7 100644 --- a/acme/challenge.go +++ b/acme/challenge.go @@ -519,9 +519,9 @@ func doTPMAttestationFormat(ctx context.Context, ch *Challenge, db DB, att *Atte leaf.UnhandledCriticalExtensions = unhandledCriticalExtensions } - roots, err := prov.GetAttestationRoots() - if err != nil { - return nil, WrapErrorISE(err, "error getting tpm attestation root CAs") + roots, ok := prov.GetAttestationRoots() + if !ok { + return nil, NewErrorISE("error getting tpm attestation root CAs") } verifiedChains, err := leaf.Verify(x509.VerifyOptions{