Search code examples
macoskeychain

Install private key from CSR file in Keychain on Mac?


I accidentally deleted my private key from keychain i have that same CSR file and iPhone Distribution certificate, i want to install private key from CSR file. when i install iPhone Distribution certificate i am not getting private key in keychain access. i don't have developer account access now. how to do that?

enter image description here


Solution

  • The certificate signing request (CSR) does not include the private key, only the public key. If you don't have some sort of backup (of the keychain or an exported private key), you will not be able to recreate it.