macos 苹果钥匙串私钥/公钥问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6707865/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Apple keychain private/public key issue
提问by NicTesla
I accidentally deleted the private and public key pair of my certificate, but I can't find anything helpful to undo or add those to my certificate again.
我不小心删除了我的证书的私钥和公钥对,但我找不到任何有用的东西来撤销或再次将它们添加到我的证书中。
Actually the developement certificate has expired, so i redownloaded the new one. Than I wanted to add the private/public key to my new certificate. And there it happend, i deleted it.
其实开发证书已经过期了,所以我重新下载了新的。我想将私钥/公钥添加到我的新证书中。它发生了,我删除了它。
How can I get these and set them to my actual certificate again.
我如何获得这些并将它们再次设置为我的实际证书。
采纳答案by Armand
I had this issue two days ago.
两天前我遇到了这个问题。
Open Keychain Access
打开钥匙串访问
What you have to do is make backups of all your certificates and then go and delete all the private and public keys and certificates on your machine relevant to apple.
您需要做的是备份所有证书,然后删除机器上与苹果相关的所有私钥和公钥以及证书。
Then in Keychain Access click on Keychain Access(Menu Bar) and in the menu select Certificate Assistant -> Request a certificate from a certificate authority.
然后在钥匙串访问中单击钥匙串访问(菜单栏)并在菜单中选择证书助手 -> 从证书颁发机构请求证书。
Enter your details and make sure Saved to disk and Let me specify key chain pair is selected.
输入您的详细信息并确保选择了保存到磁盘和让我指定钥匙链对。
Save it.
保存。
On the next screen: These values must be:
在下一个屏幕上:这些值必须是:
Key Size: 2048 bits
密钥大小:2048 位
Algorithm: RSA
算法:RSA
You then need to log into the Provisioning Portal on apple's website and revoke all certificates there.
然后您需要登录苹果网站上的 Provisioning Portal 并撤销那里的所有证书。
Then click distribution and say Add Certificate and select the file you created earlier.
然后单击分发并说添加证书并选择您之前创建的文件。
You can then request all certificates again. Re-download all certificates, once you start opening the downloaded certificates your new key pair and certificate will be in Keychain Access.
然后您可以再次请求所有证书。重新下载所有证书,一旦您开始打开下载的证书,您的新密钥对和证书将在 Keychain Access 中。
If you have any questions check out http://developer.apple.com/ios/manage/distribution/index.action
如果您有任何问题,请查看http://developer.apple.com/ios/manage/distribution/index.action