Post

Replies

Boosts

Views

Activity

security: SecKeychainItemImport: The user name or passphrase you entered is not correct.
I exported the pkcs12 file which contains the Apple Distribution Certificate with the Private Key on macOS 14 Sonoma with no password. I was able to import the same on different macOS 14 Sonoma machines as follows: security import \ apple-distribution-hrk.p12 \ -k /Users/hrk/Library/Keychains/non-default.keychain-db \ -f pkcs12 \ -P "" \ -A But when upgraded to macOS 15 Sequoia, running the above command gives me the following error: security: SecKeychainItemImport: The user name or passphrase you entered is not correct. Workaround: I didn't have the Private Key of the original macOS 14 Sonoma from which the pkcs12 file was exported. So, I had to create the new Certificate by uploading the Certificate Signing Request, download the .cer file, import it, and then export the pkcs12 file with some password. Then I was able to import the pkcs12 file with the password. Question Can somebody point to the official documentation that refers to this Breaking Change? Or is this the bug in macOS 15 Sequoia?
4
1
512
Sep ’24