Home/Glossary/What is a certificate signing request (CSR), and why is it created on a Mac?

What is a certificate signing request (CSR), and why is it created on a Mac?

Updated · airankrush

Term · Certificate signing request (CSR)

A certificate signing request (CSR) is a small file you hand to Apple when you request a signing certificate manually. Its extension is usually .certSigningRequest. When you create one on a Mac with Certificate Assistant in Keychain Access, the system generates a key pair at the same time: the public key goes into the CSR, and the private key stays in that Mac's keychain. You upload the CSR in the developer account, Apple uses it to issue a certificate file, and when you download that file and install it on the same Mac, the certificate pairs up with the private key. According to Apple, each certificate needs its own CSR. If you let Xcode manage signing automatically, Xcode does all of this for you and you never see a CSR file.

How it relates to renting a remote Mac

The CSR file itself is useless once it has been used. It does not contain the private key and does not need backing up. What matters is which computer the private key behind it was left on.

  • The machine where you create the CSR is the only machine that can sign with the resulting certificate. Create it on a rented Mac and the private key is inside that rented machine; downloading just the certificate file on another computer will not let you sign.
  • So once the certificate is created and installed, export it as a .p12 straight away from Keychain Access or Xcode's certificate management, copy it back to your own computer, and check that the file actually opens.
  • After a machine swap, a reinstall, or the erase at the end of a rental, a private key that was not exported cannot be recovered. You can only revoke that certificate in your account and go through the process again.

People without a Mac can also generate a key and CSR with OpenSSL on Windows or Linux, but the signing steps that follow still have to happen on macOS, and you then have to combine the certificate and private key into a .p12 yourself and import it. That is more steps, and most people simply do it on a Mac. Official steps: Apple Developer Help: Create a certificate signing request.

FAQ

Do the email and name I enter when creating a CSR matter?

They are only labels for recognizing the key and do not have to match your developer account exactly. Enter a name you will recognize later in the keychain; for the exact field requirements follow Apple's steps.

Can one CSR be used for several certificates?

Apple says each certificate needs its own CSR. Several certificates sharing one private key also makes it harder to revoke them individually, so use one request per certificate.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · Glossary