How to renew an iPhone development certificate?

Solution 1:

With Xcode 5, following steps:

1) Remove old certificate from https://developer.apple.com

2) Open XCode - Preferences - Accounts - View Details, then click refresh icon in left-bottom

3) Xcode asks if you want to request a new certificate

Enjoy this simple work

Solution 2:

If the certificate is expired, you can not revoke it. You need to re-create it through the developer program portal.

Once you have your new certificate available, I am not sure if you need to create again the provisioning profiles associated to your previous certificate. I guess you must probably do this (unless the provisioning profiles just use the certificate subject and not the valid from/ to fieds).

To the best of my knowledge, there are no other side-effects.

Solution 3:

Don't know if this will help but I performed the following steps today to get my expired profile back on track.

NOTE: These steps are a day after my provisioning / certificates expired. I purposely did it a day after expiration. It makes the things much easier, in a weird way.

STEPS TO RENEW

1) login to itunes connect provisioning portal https://developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action

2) Click on certificates

3) Request New Certificate

4) Upload file CertificateSigningRequest.certSigningRequest from desktop folder. (if you had saved one from last time) For more info check this link

5) Hit submit

6) Launch your Xcode program

7) Click on Device

8) Click on Provisioning Profiles

9) Select your expired certificate and hit the renew button on the top.

10) Wait 2-5 minutes

11) Go back to https://developer.apple.com/ios/manage/provisioningprofiles and there should be a new distribution certificate

11a) Go to provisioning on the iTunes web and edit --> modify all your provisioning profiles and hit submit. Just modify any device or check box on them.

11b) After a few seconds your profiles will be renewed. (Hit refresh button on your browser)

12) download both development and distribution certificates. (no need to download provisioning certificates)

13) Save them in a new folder on desktop and double click on the dev and distribution certificates

14) This launches keychain. Delete old / expired keychains

15) Go back to Xcode under Provisioning Profiles and hit the Refresh button at the bottom

16) All should be working and nothing should be out to date or expired