crypto/x509: unable to parse certificate with rsassa-pss algorithm #48314
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
We came across this issue after being issued a self signed CA certificate that we needed to use to verify some signatures. The certificate uses the rsassa-pss algorithm. This is now supported in openssl, however it appears to be unsupported in the x509 package. We are unable to load the certificate public key and use it to verify signatures. RSA-PSS seems to be supported in the RSA and TLS packages however.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using openssl 1.1 generate an rsa-pss certificate using the following command
Try to use this certificate in Go - the public key will be nil. Certificate below is just a test.
What did you expect to see?
The public key is parsed and loaded
What did you see instead?
The public key is nil
Further information
The certificate we are trying to use has the following attributes which I can't generate exactly the same with openssl. But the example still causes the same issues with Go
The text was updated successfully, but these errors were encountered: