An error has occurred. Unable to import an item. The contents of this item cannot be retrieved. Missing .pem file

后端 未结 3 1711
[愿得一人]
[愿得一人] 2021-01-31 15:38

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 accepti

相关标签:
3条回答
  • 2021-01-31 15:53

    Quoting http://www.openradar.me/7092640:

    You can use the 'security' command line tool:

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

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

    https://stackoverflow.com/a/16847082/14731 contains a similar answer.

    0 讨论(0)
  • 2021-01-31 16:04

    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.

    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.

    0 讨论(0)
  • 2021-01-31 16:09

    1., open Keychain Access. 2., On the Keychains panel right click on login. Select Lock Keychain "login". 3., Then unlock it. Then the import should work.

    0 讨论(0)
提交回复
热议问题