Home/Q&A/Is my signing certificate's private key safe on a rented Mac? How to back it up

Is my signing certificate's private key safe on a rented Mac? How to back it up

Updated · airankrush

Direct answer

It depends on how you manage it. The private key exists only in the keychain of the Mac that generated it, and Apple keeps no copy; if you do not export it, it is gone once the machine is wiped after the rental. Export a backup promptly and delete the key before the rental ends, and the risk is manageable.

Basis

  • A certificate has two parts. The certificate file issued by Apple can be downloaded again from the developer portal at any time; the private key is generated only in the local keychain when the certificate is created. A certificate without its private key cannot sign anything. In Keychain Access, select the certificate together with the private key under it and export them; the result is a password-protected .p12 file, and that is the complete backup.
  • After the rental ends, the platform takes the machine back, erases it completely and reinstalls it, and data on it cannot be recovered. Store the .p12 somewhere outside the machine that you control, such as a password manager or encrypted cloud storage, and confirm elsewhere that the file opens.
  • According to Apple's certificate documentation, after a distribution certificate expires or is revoked, apps already on the App Store are not affected as long as the developer program membership is active. You can no longer upload new versions with that certificate, and builds that were uploaded but not yet submitted for review may be marked invalid. So losing the private key is not a disaster: create a new certificate and you can keep releasing, at the cost of doing the setup once more.
  • There are two ways to keep the private key off this machine as far as possible. One is Xcode's automatic signing with cloud-managed certificates, where the signing is done on Apple's side when you archive and distribute through the Organizer. The other is uploading with an App Store Connect API key instead of your account password; create the key with the least privileges needed, and it can be revoked individually when you are done. Apple's documentation defines when each of these applies.

Information as of .

Boundaries: when the answer is different

We carry out necessary connection, operation and security monitoring of the device, do not record screen images or the content of your business data, and do not access the device's contents on our own initiative. Even so, this is a machine you do not physically control, and it should not be treated as equivalent to a device you own. If your company requires signing keys to stay on owned or managed devices, or if what you hold is an enterprise in-house distribution certificate whose revocation would disable every installed app, do not put the private key on this machine. Backups are the customer's responsibility, and we keep no copies.

How to do it

  1. Export the .p12 the same day the certificate is created, set a strong password, and store the password and the file separately.
  2. Move the .p12 off the machine and confirm on another device that the file is complete and readable.
  3. An API key file can be downloaded only once; back it up outside the machine as well.
  4. During the rental, do not commit the .p12 or key files to the code repository.
  5. Before the rental ends, delete the certificate and private key from the keychain; if you are still uneasy, revoke the certificate in the developer portal and create a new one.

Use case

This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device

Other questions in the same use case:

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

Back to home · All Q&A