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

你。 提交于 2019-12-10 14:56:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!