This certificate has an invalid issuer in ios keychain - ios

Keychain show the certificate error > This certificate has an invalid issuer
See the screen shot.
RefLink> This certificate has an invalid issuer keychain
Also I have implemented the above url solution and ipa is created but at the time of uploading the build from Application Loader its show the error as per the screen shot.
Please help anyone.

Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
and double-click to install to Keychain.
Select "View" -> "Show Expired Certificates" in Keychain app.
Remove Apple Worldwide Developer Relations Certificate Authority certificates from "login" tab and "System" tab in Keychain app.
Ensure the new downloaded cert is in both login and system Default to only system tab will still give error.**
Delete all your certificates and provisioning profile on developer portal.
Create certificate signing request from keychain.
Recreate all the certificate & provisioning profile using the CSR generated in step -5
Download and install those certificates created on step-6 and try.

Try to install new certificate from link below.
https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
This worked for me. I hope this will help you.
After this create and install new iOS Distribution and iOS Development Certificate.

Related

Installing iOS certificates locally

On the Apple site, in the Certificates section, I see that I have two certificates (iOS Development and iOS Distribution). They both expire in 2017. Everything looks fine there.
When I download the certificates and try to install them locally, they both appear in the “Certificates” section of my Keychain. In the “My certificates” section of my Keychain, however, I see only the Developer certificate. If I try to copy the Distribution certificate from “Certificates” to “My Certificates”, it does not help.
In XCode, in the Accounts section, when I choose my Apple ID and click on “View Details,” I see only “iOS Development” in the list of Signing Identities. And its status is “Revoked” for some reasons! When I click on “+” under the table and try to add iOS Distribution certificate, a dialog appears which says: “Your account already has a valid iOS Distribution certificate. You have a valid iOS Distribution certificate in the Member Center, but it is not installed locally. If your signing identity is installed on another Mac, you can export a developer profile on that Mac and import it on this Mac. You can also revoke your current certificate and request a new one.”
Is it safe to go to the Apple site and revoke the certificates there? Would it help somehow? Or maybe there are better solutions?
You may revoke your distribution and create a new one with CertificateSigningRequest created from keychain access. But if you have other project using this distribution certificate, It is better export that certificate from the originally installed computer using keychain access export with the .p12 extension and install it to your computer.
If you export a certificate distribution or development. You need to go to developer.apple.com and renew all your previous provisioning file with a new certificate. It is time consuming but if you are not able to export old certificate that is the only option.

Codesign error while archiving IOS app

I am new to IOS. I have developed an IOS application now i want to publish this application on iTunes. I have created Certificate, App ID and then Provisional profile. I have succesfully added this in “Code Signing” section of "Build Setting”. Now, while Archiving the project i am getting a following error.
error: Couldn't codesign /Users/dx/Library/Developer/Xcode/DerivedData/xxxx-dgsqnqppikhtqeezizlbydrpxfiz/Build/Intermediates/ArchiveIntermediates/xxxx/InstallationBuildProductsLocation/Applications/xxxx.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1*
Please help me out of this problem. Thanks in advance.
You need to re-generate your provisioning profile from Apple Developer Center. As far as I know they add something new to profiles and that causes the problem.
Solution
In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.
-> After deleting the expired cert from the login and System keychains,download certificate from below link and open with keychain.
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and add it to Keychain access > certificates (which expires on 2023)

Missing ios distribution signing identity not expired certificate

I'm having so many issues archiving and uploading my project to the apple store for submission. Probably have gone through changing the bundle identifier-- creating a certificate, updating the app ID and creating a provisioning profile 5 times already.
When I try to validate the project after I've archived it I get the error missing ios distribution signing identity for signing identity (Me)...
Is it because my iphone distribution says 'this certificate has an invalid user'? How do I fix that? I downloaded the certificate link they suggested and used it to create a certificate. Very stuck and frustrated.
Every time I try to change this section to be the iOS Distribution Identity and corresponding Provisioning Profile it says it's unable to find a matching UUID for the provisioning profile. Not sure if that's helpful but it seems like something is mis-configured, just not sure where to look or where to start over, or if there is some lurking configuration from an older mistake that is screwing me up.
delete all the certificates and provisions profiles, reinstall all the certificates and profiles. this might resolve the problem.
Update the apple developer certificate
1->Open keychain
2->Go to view - Show expired certificate
3->Delete the red mark certificate "Apple Worldwide Developer Relations Certificate Authority"
4->Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
5->Install it and now see if you are able to use certificate or not
More detail explanation This certificate has an invalid issuer Apple Push Services

Issue with Provisioning Profile

I have a app which works fine while running in device without utilizing "Provisioning Profile" of developer certificate but while trying to create a .ipa file with "Provisioning profile"it fails to create.
It gives the error "Failed to locate or generate matching signing assets". Please check the Image 1 showing this error.
To utilize the profile to install an app for client, We have selected the developer certificate, but it throws an error. Since Both the certificates (developer and Enterprise) is issued on the name of one person only.Please find the Image 2 and 3 showing the error.
We want to know what exactly the issue behind this.
If you want to archive your app then you have to create iOS Distribution certificate not development certificate and then after create AdHoc or Distribution provisioning profile and then try to archive app again.
I hope this will help you.
First Check the PMCTests targets
Click on projects PMCTests check bundle identifier and provisioning profile then check for Apple Worldwide Developer Relations Certification Authority in keychain
Apparently, I was having the same issue as this question, So I hope this will fix your problem! Download Apple Worldwide Developer Relations Certification Authority (WWDR) certificate, re add it to the keychain! and delete previouse one from keychain.
Here is the link to download the certificate :
https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
First of all Check if Apple world wide Developer relations certification authority is expired,follow the below steps & if you already installed it then move to next paragraph.
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
and double-click to install to Keychain.
Select "View" -> "Show Expired Certificates" in Keychain app.
Remove Apple Worldwide Developer Relations Certificate Authority certificates from "login" tab and "System" tab in Keychain app.
Ensure the new downloaded cert is in both login and system Default to only system tab will still give error.**
If everything is correct as per first section,
Generate AdHoc Distribution provisioning profile
Download and double click on it.
Select that profile on build settings & then try to Archieve, it will work.

Xcode Archive Error: Missing IOS Distribution Signing Identity For (Name)

When I try to archive my app, I get this error...
I've been doing a lot of research, but can't seem to figure it out. I've tried everything from revoking and recreating my certificates, and recreating the Provisioning Profiles.
What do i do?
According to the Apple Developer Forums, the Apple Worldwide Developer Relations Intermediate Certificate Expiration expired 2/14/2016.
... This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To
resolve the issue, you should first download and install the new WWDR
intermediate certificate (by double-clicking on the file). Next, in
the Keychain Access application, select the System keychain. Make sure
to select “Show Expired Certificates” in the View menu and then delete
the expired version of the Apple Worldwide Developer Relations
Certificate Authority Intermediate certificate (expired on February
14, 2016). Your certificates should now appear as valid in Keychain
Access and be available to Xcode for submissions to the App Store.
Follow These Simple Steps:
Open Keychain from top menu go to View > Show Expired Certificates .
Now In Keychain Locate Expired Apple World Wide Developer Relation Certification Authority in Login tab and System tab from left panel and delete it from both tabs.
Download Certificate: https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and double click to install it.
Restart Xcode.
This answer solved my problem...
The problem was that the certificate was not signed by a known authority.
this certificate was signed by an unknown authority
I spent lots of time due to this certificate.After delete wwdr certificate in login and system tab problem is fixed

Resources