PaolaJ.
PaolaJ.

Reputation: 11552

How to export certificate from Mac OS X to get pair of .cert and .key files ?

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 )

Upvotes: 9

Views: 20992

Answers (2)

Rene Kann
Rene Kann

Reputation: 319

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

Upvotes: 9

Nima
Nima

Reputation: 1540

Try using Keychain Access.

(Finder > Applications > Utilities > Keychain Access)

Then search for the certification you have created, right click on it and export it:

enter image description here

Upvotes: 3

Related Questions