x/crypto/ocsp: create OCSP request without issuer certificate #49355
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?x/crypto
version: v0.0.0-20210921155107-089bfa567519Details
The existing
ocsp.CreateRequest
function takes two certificates: a cert and its issuer. It would be nice to have a variant that didn't require the issuer to be provided.The two pieces of information needed from an issuer are its
RawSubject
and its public key: https://github.com/golang/crypto/blob/089bfa5675191fd96a44247682f76ebca03d7916/ocsp/ocsp.go#L641-L661The Subject info for an issuer is available in the cert's
RawIssuer
field, and the public key info is available in theAuthorityKeyId
field. Go's x509 implementation targets the WebPKI, and the AuthorityKeyIdentifier extension is required for subscriber certificates by the Baseline Requirements, v1.8.0 section 7.1.2.3 item g:The text was updated successfully, but these errors were encountered: