在Iphone的钥匙串访问下导出/导入证书,私钥的问题 [英] The issues of exporting/importing certificate , private key under keychain access for Iphone

查看:376
本文介绍了在Iphone的钥匙串访问下导出/导入证书,私钥的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将证书和私钥从一台计算机导出到另一台计算机,这样我就可以重用配置文件。

I want to export the certificate and private key from one machine to another so I can reuse the provisioning profile.

密钥链访问证书下有一个私钥。

There's a private key under the certificate in keychain access.

1)我将证书导出为certifcate .cer文件,然后我从另一台机器导入了该文件。但是,这是私钥的使命。和新机器上的xcode抱怨导入的配置文件没有可用的有效签名密钥。

1)I exported the the certificate as certifcate .cer file then I imported that from another machine. However , it's missiong the private key. and xcode on the new machine complaining no valid signing key available for the imported provisioning profile.

2)接下来我尝试导出证书和私钥作为个人信息发布.p12格式,这次它提示我输入我做过的密码。

2) Next I try to export the certificate and the private key as personal information exhange .p12 format, this time it prompted me to input a password which I did.

3)我将.p12文件导入新机器,这次是新机器抱怨错误,无法读取内容。

3)I imported the .p12 file into the new machine, this time the new machine complaining error, cannot read the contents.

那么,我该怎么做才能正确导出证书和私钥并将它们导入新机器。

So, what should I do to properly export both the certificate and private key and import them into the new machine.

推荐答案

希望它可以帮助你
在Keychain中,选择三项:您的私钥,公钥和证书来自Apple

Hope it may help you In Keychain, select three items: Your private key, public key and the cert from Apple

CMD +点击以选择导出3个项目

CMD+Click to select "export 3 items"

您将导出一个.cer文件。然后双击导入文件而不键入任何密码来保护。

and you will export one .cer file. Then double click to import the file without keying any password to protect so.

或者您应先导入证书然后再导入公钥和私钥。
确保您的钥匙串中还有Apple Developer Relations根CA证书。这就是用于验证证书的内容。在您的钥匙串访问中查看它是否已正确配对。

or you should import cert first and then import both public and private key. Make sure you also have the Apple Developer Relations Root CA certificate in your keychain. That is what is used to verify the certificate. See in your keychain access whether it has been paired correctly.

这篇关于在Iphone的钥匙串访问下导出/导入证书,私钥的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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