-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading a PFX with unsupported algorithms reports bad password over unsupported algorithm. #59615
Comments
Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks Issue DetailsDescriptionReading ED25519 certificate under Linux (Ubuntu 21.04) fails with the following exception:
However, the same certificate is loaded under Windows without any issue. If equivalent certificate (i.e. all same parameters) is created using RSA, loading works for both Windows and Linux/Ubuntu. Example application together with the certificate created is included in CertTest.zip. Essentially just creating
I would expect the certificate that works under Windows to be readable under Linux too. If there's a technical reason why ED25519 certificate wouldn't work under Linux, inner exception text is actually better information than "the password may be incorrect". ConfigurationWorking: .NET 6rc1 (Windows x64) Other information
|
Yeah, Ed25519 certificates are not really "supported" in the sense that we have appropriate APIs to deal with Ed25519 keys. Though #46513 is a similar issue that tracks adding Ed25519 / EdDSA support.
Yeah, the message tries to be as clear as possible with "may be incorrect" since that is the most common reason for a PKCS12 to fail to load. Maybe we can improve this specific scenario a bit to make the error more clear, we know the PKCS12 failed to load for a reason other than an MAC issue. |
Description
Reading ED25519 certificate under Linux (Ubuntu 21.04) fails with the following exception:
However, the same certificate is loaded under Windows without any issue. If equivalent certificate (i.e. all same parameters) is created using RSA, loading works for both Windows and Linux/Ubuntu.
Example application together with the certificate created is included in CertTest.zip. Essentially just creating
X509Certificate2
instance is sufficientI would expect the certificate that works under Windows to be readable under Linux too. If there's a technical reason why ED25519 certificate wouldn't work under Linux, inner exception text is actually better information than "the password may be incorrect".
Configuration
Working: .NET 6rc1 (Windows x64)
Issue: .NET 6rc1 (Linux Ubuntu 20.04, 21.04 x64)
Other information
The text was updated successfully, but these errors were encountered: