Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"iPhone Distribution" certificate is not trusted

I just installed a new iPhone Distribution certificate that was exported as a .p12 from someone else's computer.

When I try to archive with a provisioning profile that's tied to this new certificate I get this Invalid trust settings error:

enter image description here

Restore system default trust settings for certificate "iPhone Distribution" in order to sign code with it.

However, when I Repair Trust Settings, which sets the Trust Settings for the certificate to "Use System Defaults", it says that the certificate is not trusted:

enter image description here

iPhone Distribution certificate is not trusted

If I try to archive in this state, I get this error:

Warning: unable to build chain to self-signed root for signer "iPhone Distribution"

And I'm stuck in an infinite loop. Please help!

like image 360
Adam Zarn Avatar asked Oct 29 '20 17:10

Adam Zarn


3 Answers

I had the Apple Worldwide Developer Relations Certification Authority certificate that expires on Feb 7, 2023 at 3:48:47 PM.

My issue was resolved when I installed the one that expires on Feb 19, 2030 at 6:00:00 PM.

You can download either one of those here: https://developer.apple.com/account/resources/certificates/add

like image 73
Adam Zarn Avatar answered Oct 23 '22 03:10

Adam Zarn


Trust in an Apple certificate is provided through the Apple Worldwide Developer Relations Certification Authority certificate. It sounds like you don't have one. It looks like this:

enter image description here

If you don't have one of those, get it from the Apple Developer Member Center. Even if you do have one, try downloading a newer one.

like image 36
matt Avatar answered Oct 23 '22 01:10

matt


After not getting any luck downloading the Apple Worldwide Developer Relations Certification Authority certificate 2030, what worked for me was going to the system keychain and searching for the certificate that was having trouble (something like 5CTYZUT475) and I changed the always trust to use system defaults.

like image 5
jas-chu Avatar answered Oct 23 '22 02:10

jas-chu