You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
X509Certificate2/CommonCrypto: Unable to open PKCS#12 files with no password and valid MAC #23635
If you have a PKCS#12 file which is not protected with a password, and which does have a MAC entry, opening the file will work on Windows and Linux but fails on Mac (which use CommonCrypto).
This is a regression on macOS as this worked with .NET Core 1.x (when using OpenSSL) and no longer works with .NET Core 2.0.
This is not the same as #18254, that one was about p12 stores where the MAC is absent; in this case there is a valid MAC.
Reacted by Andrey Kuznetsov, antonymikchayloff, Alex Bliznecov, Alex Ivanov, Sergey Guk, litealex, LinFor, BetterThanNothing, dean-russ, Mike Figueroa and 6 more
Based on testing I did in the past, Apple cannot read a PFX that contains non-encrypted keys. So while this is a bug, it's probably not something that we would work around in .NET without a very compelling argument (like it being a key distribution model by a government CA, or something like that); but rather something which ideally would be resolved by Apple (https://bugreport.apple.com/, for SecItemImport).
What's the scenario here? Where are these PFX files coming from?
Activity
qmfrederik commentedon Sep 23, 2017
/cc @bartonjs
qmfrederik commentedon Sep 26, 2017
@bartonjs Is this a known compatibility issue?
From what I can gather, it's not listed at cross-platform-cryptography.md, so wanted to make sure.
qmfrederik commentedon Sep 26, 2017
As a FYI for others who may hit the same issue, here's code that may act as a workaround based on BouncyCastle.
kae commentedon Oct 2, 2017
Is any triage planned on this issue?
At least bug/non bug decision
danmoseley commentedon Oct 2, 2017
cc @bartonjs ..
bartonjs commentedon Oct 4, 2017
Based on testing I did in the past, Apple cannot read a PFX that contains non-encrypted keys. So while this is a bug, it's probably not something that we would work around in .NET without a very compelling argument (like it being a key distribution model by a government CA, or something like that); but rather something which ideally would be resolved by Apple (https://bugreport.apple.com/, for SecItemImport).
What's the scenario here? Where are these PFX files coming from?
Removing EventPipe file polling (EventPipeController+Timer) (#24225)
Removing EventPipe file polling (EventPipeController+Timer) (#24225)
adding cert with password to work around https://github.com/dotnet/co…
Adding ClientCertificateCredential to Azure.Idenity (#6636)
Add comment