发生了错误.无法导入项目.该项目的内容无法检索.缺少.pem文件 [英] An error has occurred. Unable to import an item. The contents of this item cannot be retrieved. Missing .pem file

查看:849
本文介绍了发生了错误.无法导入项目.该项目的内容无法检索.缺少.pem文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题.我现在将p12证书安装到MacBookPro中一次,然后将其删除,现在我再次尝试安装它.钥匙串只是出于奇怪的原因而不接受证书.

I am struck with a problem. I installed the p12 certificates once into a MacBookPro and then deleted it, now when I am again trying to install it. Keychain is simply not accepting the certificate for strange reason.

经过一番谷歌搜索后,我点击了以下链接: http://www.openradar.me/7092640

After some googling, I hit upon this link: http://www.openradar.me/7092640

明确指出钥匙串有一个错误,并指出了一种解决方法.但是不幸的是我没有.pem文件,因为我还没有备份它,以为p12文件就足够了(实际上,如果不是这个bug,那就足够了!).那么,如何获取.pem文件,以便可以使用此替代方法将证书重新安装到同一台笔记本电脑上?

Which clearly says that there is a bug with Keychain and states a workaround too. But unfortunately I do not have the .pem file, since I have not made a backup of it thinking that p12 file is sufficient (which actually is, if not for this bug!). So how do I get the .pem file so that I can install the certificates back onto the same laptop using this workaround?

感谢您的任何建议/想法. 拉吉

Thanks for any suggestions / ideas. Raj

推荐答案

当您请求证书时,您的Mac将创建一个公用/专用对,用于从Apple下载证书.这就是为什么您不能从没有原始配对的另一台Mac下载结果证书的原因.

When you request a certificate, your Mac creates a public/private pair that will be used to download the certificate from Apple. This is why you can't download the resulting certificate from another Mac that doesn't have the original pair.

如果删除了原始对,则必须先重新导入.如果您没有一对,则可能是从头开始申请新证书.

If you deleted the original pair, you have to re-import it first. If you don't have both halves of the pair, you may have request a new certificate from scratch.

如果您有原始文件,并且不会将其导入到登录钥匙串中,则可以尝试使用"KeyChain Access"实用程序创建一个新的钥匙串以在帐户中使用.如果导入了信息,则只要您打开新的钥匙串,Mac便应该能够找到它.

If you have the originals and it won't import them to the login keychain, you might try creating a new keychain to use in the account with the "KeyChain Access" utility. If it imports the information, the Mac should be able to find it as long as you leave the new keychain open.

这篇关于发生了错误.无法导入项目.该项目的内容无法检索.缺少.pem文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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