From my developer account, when I generate CSR and submit for certificate generation private key not available and loaded into keychain
Privatekey missing unable to export p12 file
Steps to Generate CSR with Private Key in Keychain Access:
Open Keychain Access:
Go to Applications > Utilities > Keychain Access.
Start the CSR Process:
In the menu bar, go to Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority….
Enter Certificate Information:
User Email Address: Enter your Apple Developer account email.
Common Name: Provide a name to identify the certificate (e.g., "Developer Certificate").
CA Email Address: Leave this blank.
Request is: Select "Saved to disk" and check "Let me specify key pair information."
Key Pair Information:
Choose Key Size: 2048 bits.
Choose Algorithm: RSA.
Save the CSR:
Click Continue, select a location to save the CSR file, and click Save.
Submit the CSR:
Go to the Apple Developer Certificates page.
Select the appropriate certificate type (e.g., iOS Distribution, iOS Development).
Upload the CSR you just generated.
Download and Install the Certificate:
Once approved, download the certificate from the Apple Developer portal.
Double-click the downloaded .cer file to add it to your Keychain Access.
Verifying the Private Key
In Keychain Access, look for the certificate in the My Certificates section.
Expand the certificate by clicking the arrow beside it. You should see the associated private key underneath.