Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Code Signing Identity because of an expired certificate that doesn't exist

I'm stuck with my app. I can't upload it to iTunes because, after the "Archive" step when I have to choose an application record and a Code Signing Identity it says:

"My Name" is a valid identity. However, the associated package identity "My Name" has expired.

Looking in the popup menu of Code Sign Identity I notice that the problem comes from the "MyProgram_production" certificate, and in fact in the provisioning portal, when I go to create the developer certificate profile for Production I get this error:

You must have a valid Mac Application Certificate to create a Provisioning Profile.

You must have a valid Mac Application Certificate to create a Provisioning Profile

But I already created a valid provisioning profile, as you can see in the image it is there, but the expired one is also there. My problem is that in the certificates page of the Apple site, the old expired one is not there. There are some old certificates but I have no chance to delete them:

the certficates page

What can I do about this?

like image 597
Blue Avatar asked Dec 03 '25 22:12

Blue


1 Answers

After 2 days of total desperation... (I should be used being an Apple Dev for some years now...) I finally resolved my problem... For who is having the same difficulty the problem was I could not see the expired certificates in my Keychain Access and that is because there was the (strange) option "Hide Expired Certificates" in my comp... I changed Mac and had no idea there was this option... Why someone should want to hide an expired certificate and not just delete it??? Anyway deleting the expired certs and doing all the certificates again on Apple site did the trick!

like image 140
Blue Avatar answered Dec 09 '25 11:12

Blue



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!