I'm trying to export Certificate key "Apple Push Service" from MAC machine (for Google Cloud Messaging porpoises). this key I just created it with below steps from Apple web site
To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSR file, follow the instructions below to create one using Keychain Access.
Create a CSR file.
In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access.
Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
In the Certificate Information window, enter the folwing information: In the User Email Address field, enter your email address. In the Common Name field, create a name for your private key (e.g., John Doe Dev Key). The CA Email Address field should be left empty. In the "Request is" group,
select the "Saved to disk" option.
Click Continue within Keychain Access to complete the CSR generating process.
I created the certificate the I need to export it to .p12 file to complete my process.
So I did the process as below (go to keychain and try to export)
then when I try to write my password nothing happens, no error and no export (Nothing)!!!!
I'm sure my password is correct, and to be sure I reset my keychain "login" again , then restart the MAC machine, and try again, but still not working!!
I also tried to Export the key by command line below
security export -k login.keychain -t all -f pkcs12 -P myPasswordHere
But not working too with below error
security: SecKeychainItemExport: A cryptographic verification failure has occurred.
I even tried to delete this certificate and redo it again, and even I tried to reset all my login keychain and redo everything anain, but this also didn't help!!
Any help how can I export this certificate??? Thanks.