如何从Mac OS X导出证书以获取.cert和.key文件对? [英] How to export certificate from Mac OS X to get pair of .cert and .key files ?

查看:607
本文介绍了如何从Mac OS X导出证书以获取.cert和.key文件对?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac 10.10.1上创建了证书,并且在钥匙串访问证书中也有私钥.在Windows上,我必须使用此文件,并且需要.cert和.key文件.如何导出此证书以获取这两个文件? 我可以导出为.pb12或.cert,但不能导出为.cert和.key(私钥)对

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 )

推荐答案

您要导出哪种证书?您可以尝试将证书另存为* .p12文件,并尝试以下解决方案之一: https://www.icts.uiowa.edu/confluence/pages /viewpage.action?pageId=32735365

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

例如

openssl pkcs12 -nocerts -in yourcert.p12 -out yourkey.key

这篇关于如何从Mac OS X导出证书以获取.cert和.key文件对?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆