Fixing the Expired Certificate for iPhone Development Environment

Introduction:

This is a short guide to resolving the issue of the expired certificate using XCode with the iPhone SDK – its probably relevant for setting up your certificate from scratch as well. I am not totally convinced this is the best way of fixing the expired certificates for iPhone Development, but it worked for me so.

The Environment:

The development environment  is a follows:

  1. MACBOOK PRO;
  2. SnowLeopard OS;
  3. XCode 3.2 ; and
  4. iPhone developer program member.

The Problem:

You’ll may get a variety of messages when the certificate expires and they will include:

a valid signing identity matching this profile could not be found in your keychain

or :

 

code sign error: the identiy matching this profile could not be found in your keychain

 

or

You currently do not have a valid certificate

Getting a new certificate:

  1. From Applications->Utilities Click KeyChain Access
  2. From the Keychain Menu Select Certificate Assistant->Request a Certificate From a Certificate Authority
  3. Enter your email address and your common name and select Save to disk
  4. Go to http://developer.apple.com/iphone/index.action and login
  5. Go to the Provisioning portal in the iphone developer and select Certificates
  6. Remove the existing certificate
  7. Add a new certificate
  8. Choose File selects the file you created in step 3
  9. Click Approve
  10. Reload the page. Now you should see the download button.
  11. Click Download
  12. Then select it the downloaded file
  13. You will receive a dilog stating “Do you want to add the certificates from the file…. To a keychain”. Select YES.
  14. Click Add and you should see the certificate list with the new valid certificate displayed.
  15. That’s all you should have to do however you may notice a dialog asking you to use the new key – just select Allow or Always Allow.

Dom

Advertisement