I am using the 10.9.5 version and ios 8. When i try to install my certificate i got through my developer account for push notification for my app in the keychain local items, its not importing. The error says: Unable to import the certificate and the error code is 25294
-
This is how I fixed it with the command line stackoverflow.com/questions/7485806/…– viscCommented Sep 12, 2019 at 18:31
-
Still relevant for macOS 12.2 in 2022. Got the same issue when installing Charles Proxy's root certs: developer.apple.com/forums/thread/…– oligofrenCommented Jan 30, 2022 at 8:53
6 Answers
Try adding the certificate to the "login" keychain.
-
5Please do not delete this answer, as it answers the question and I could not find this solution elsewhere– user174099Commented May 7, 2017 at 18:28
-
yeah that was my problem, I was in the "iCloud" keychain. Login one worked.– SeanMCCommented Jan 21, 2022 at 15:56
-
okay, but the login one is lost when the switching to another macbook. It does not persist it on the cloud. Commented Oct 29 at 8:01
I worked around this error by adding the certificate to the login keychain by drag and drop.
-
-
This also seems to have worked for me, but it says the certificate is not trusted (unlike the one I'm replacing).– RickCommented Jun 30, 2022 at 0:28
Instead of double clicking the .cer file and importing in finder I just drag & dropped it into the Keychain app in the desired keychain, that worked for me.
The error code means "No such keychain":
errSecNoSuchKeychain -25294 The specified keychain could not be found.
I'm not really sure on how to proceed, but maybe this information points you in the right direction.
I'm really not sure about what you're question is asking, but I stumbled here while trying to solve the same error. The situation I had on my machine was I had a bunch of similarly named keychains in keychain access and the application would default to adding the .pem to a nonexistent keychain.
So I solved this by selecting the missing keychains one by one and deleting them all except my real System keychain, iCloud, and login. You might not have iCloud depending on your setup, version, and location.
I solved this error by deleting old certificates from Keychain, then try to install certificate by double click.
-
How is this different from the answer already provided in 2015?– fsbCommented Mar 10, 2021 at 22:39