问题
I have on Mac 10.10.1 created certificate and I have in keychain access certificate with private key. On Windows I have to use this and I need .cert and .key file. How to export this certificate to get those two files ? I can export as .pb12 or .cert but cannot export as pair .cert and .key (private key )
回答1:
What kind of certificate do you want to export? You could try to save the certificate as *.p12 file and try one of these solutions: https://www.icts.uiowa.edu/confluence/pages/viewpage.action?pageId=32735365
e.g.
openssl pkcs12 -nocerts -in yourcert.p12 -out yourkey.key
回答2:
Try using Keychain Access
.
(Finder
> Applications
> Utilities
> Keychain Access
)
Then search for the certification you have created, right click on it and export it:

来源:https://stackoverflow.com/questions/27238461/how-to-export-certificate-from-mac-os-x-to-get-pair-of-cert-and-key-files