Keychain Access exported .pem certificates cannot be re-imported
|Product:||Mac OS X
Summary: Creating a Certificate authority signing request (Keychain Access, Certificate Assistant: "Request Certificate from Certificate Authority") generates a public/private key pair. If you export the public key (.pem format) and the private key (.p12 format) and then you delete them both from the keychain. If you then try to import the exported versions (via drag and drop or import menu item) the public key cannot be imported and Keychain Access gives the following error: "An error has occurred. Unable to import an item. The contents of this item cannot be retrieved."
If you import the .p12 file you get a password prompt (no prompt text though) and then you get the same error, but it does actually seem to have successfully imported the private key (appears in the list and seems correct).
switching the order of importing the two files does not seem to change the behavior.
this is a _serious_ problem as I now have certificates I can't get back into my keychain and use.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!