安装p12私有证书An error has occurred. Unable to import an item.

安装p12私有证书,显示错误:
An error has occurred. Unable to import an item. The contents of this item cannot be retrieved. Missing .pem file
在这里插入图片描述
打开命令行,用以下命令安装即可:

security import priv_key.p12 -k ~/Library/Keychains/login.keychain

security import pub_key.pem -k ~/Library/Keychains/login.keychain

参考

https://stackoverflow.com/questions/6076448/an-error-has-occurred-unable-to-import-an-item-the-contents-of-this-item-canno

发布了167 篇原创文章 · 获赞 17 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/zgpeace/article/details/104301892