crypto/x509: Verify should reject certificates with empty issuers #71832
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.23.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Perform certificate verification
go run go_verify.go
certs.zip
What did you see happen?
The execution result is passed verification
Certificate is valid!
What did you expect to see?
RFC5280 mentions: The issuer field MUST contain a non-empty distinguished name (DN). This means that the certificate I provided should not pass the validation.
Gnutls threw an error when validating it:
Loaded CAs (1 available)
gnutls_x509_crt_get_issuer_dn: The requested data were not available.
The text was updated successfully, but these errors were encountered: