Another answer to this question ...
After you create your CSR, before uploading it to the Apple website, you can look in Keychain Access under logins โ and see that you already have new public and private keys with the same name as in the new CSR CommonName .
Therefore, when you upload the CSR to Apple, then upload the certificate, then double-click the certificate, access to Keychain simply matches that downloaded public key certificate, which was already on your Keychain Access list, and it attaches the private key.
So, if you canโt get the private key after all this, try to recreate your CSR.
The strange thing for me is that I read that you can use the same CSR every time you recreate your certificate, but for some reason this does not work for me. Perhaps due to the fact that the old deprecated certificate that I replaced was no longer in my key access list and therefore there was no public / private key pair that corresponded to the new generated certificate.
hvaughan3 May 16 '17 at 15:51 2017-05-16 15:51
source share