Search code examples
iosmacoskeychainosx-yosemite

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 )


Solution

  • 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