x/crypto/pkcs12: unknown digest algorithm 2.16.840.1.101.3.4.2.1 #62375
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
)?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?
What did you expect to see?
successfully getting the pem blocks
What did you see instead?
panic: pkcs12: unknown digest algorithm: 2.16.840.1.101.3.4.2.1
It seems like x/crypto does not support the algorithms defined in https://oidref.com/2.16.840.1.101.3.4.2.1
In x/crypto/pkcs12/mac.go verifyMac it expects the macData.Mac.Algorithm.Algorithm to be 1.3.14.3.2.26
and thus errors with "unknown digest algorithm".
The text was updated successfully, but these errors were encountered: