How to renew expired Certificate & Provisioning Profile for Ad Hoc Distribution19 Aug 2013
Apple requires it’s developers to rebuild and redeploy their apps with a new Provisioning Profile each year. Here are the steps that you would need to follow when your profile is close to it’s expiration date so you keep your app running without interruptions:
- Go to developer.apple.com and navigate to the Member Center -> Certificates, Identifiers & Profiles
- Go to Certificates -> Production
- Here you will see all your production certificates. I’m assuming most of them have or soon will be expired. So go ahead and request a new certificate by clicking on the Add (+) button.
- On that Add iOS Certificate screen, select In-House and Ad Hoc option and hit Continue.
- Now before we can continue, let’s open Keychain Access on you computer and generate a Certificate Signing Request by going to Keychain Access -> Certificate Assistant -> Request a Certificate from a Certificate Authority
- In the window that pops up, enter your email address and common name.
- Save the .certSigningRequest file to your disk.
- Now go back to your browser window and upload the .certSigningRequest file which you just created and click on Generate.
- Download and open the .cer file which you just generated in Keychain Access. You should now be able to see the newly generated certificate with a new expiration date.
- Now go back to the browser and navigate to Provisioning Profiles -> Distribution
- Click on the provisioning profile in question and click on the Edit button.
- In the certificates field, select the new certificate which you just created and click Generate.
- Download and open the new provisioning profile (.mobileprovision) in the Organizer. You should now see the new expiring date (a year from now) on that as well.
- Delete the old profiles to avoid confusion and rebuild your app with the new one
- Once you’ve rebuilt the app, just install it again on all devices in question.