Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode expired certificate problem

please look at the following screenshot enter image description here

As you see there are two certificates. All are mine, with maching user's ID and common name.

Whenever I build the application and launch it in Xcode for device I receive the fatal, that this certificate is duplicated. So I delete the expired one and launch the application again - it's being installed and debugged on device without any problems.

But when I launch other project or reboot that expired certificate is shown in the keychain again and again and it's becoming a little bit annoying.

What causes that the expired certificate is being readded to the keychain? How can I dissable it?

like image 359
Chris Rutkowski Avatar asked Apr 15 '11 06:04

Chris Rutkowski


People also ask

How do I fix an expired Iphone certificate?

iOS settings.Click Apple certificates. The current certificate details are displayed: the unique identifier (UID), the Apple ID, and expiration date. Click Renew Certificate.

What happens if Apple certificate expires?

If your certificate expires, passes that are already installed on users' devices will continue to function normally. However, you'll no longer be able to sign new passes or send updates to existing passes. If your certificate is revoked, your passes will no longer function properly.

Can you renew iOS distribution certificate?

After renewing your Distribution Certificate, you will need to upload it to the mag+ Publish portal, rebuild your app, and submit an update to iTunes Connect. The steps below will guide you through the process of renewing an iOS Distribution Certificate and creating a . p12 file.


1 Answers

The problem is you have not only the duplicate provisioning certificate, but also a duplicate developer public/private key pair.

You need to delete the matching public/private key for the certificate in addition to the provisioning certificate, then it will not be re-added.

So, find the certificate you generated and uploaded to the "certificates" section of the provisioning portal and delete it (WARNING: this certificate is never sent to Apple, and it's a huge stuffup if you delete a distribution private key that you need. Make a backup before deleting it, incase you accidentally delete something that you need).

Thanks to @dermdaly for posting this workaround. You can find more details at his blog.

like image 147
Abhi Beckert Avatar answered Oct 13 '22 21:10

Abhi Beckert