Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Cannot import .pfx certificate

Hey, I would like to add . pfx certificate to Keychain but it still throws a warning about the wrong password. The password is correct, I use the same certificate on a Windows PC. After I guess the third incorrect password it throws a different error MAC VERIFICATION FAILED DURING PKCS12 IMPORT.


Do you know what to do with it?

1 reply

Best answer By:

James Brickley 

James Brickley

User level:

 Level 4

3,958 points

OpenSSL 3.x changed the default algorithm and it's not compatible with macOS SSL libraries which are no longer staying current with OpenSSL due to breaking changes such as this. 


Fortunately, OpenSSL added a -legacy flag to revert to the previous algorithm. Add the -legacy flag after your -export flag parameter in your openssl command string. 


The alternative is to downgrade openssl to 1.x 

Posted on Jan 3, 2023 7:02 AM