If your Apple Push Services certificate or iOS Distribution certificate shows This certificate has an invalid issuer in Keychain Access and Xcode refuses to code sign or archive, the chain of trust is broken. Xcode will not find a valid signing identity and push notifications will not work until you fix the intermediate certificate.
Why this happens
Every Apple developer certificate — including Apple Push Services, iOS Distribution, and iOS Developer — is not trusted on its own. It is issued by an Apple intermediate certificate called Apple Worldwide Developer Relations Certificate Authority (WWDR). Your Mac must have the correct, non-expired WWDR intermediate installed for Keychain Access to validate the leaf certificate.
Apple rotates the WWDR intermediate every few years. The well-known rotation expired on February 14, 2016, and later versions expired in 2023. When Apple issues a new WWDR certificate, your existing push and distribution certificates were signed by the new intermediate, but your Mac may still have the old, expired intermediate in its keychains.
Keychain Access keeps certificates in two places: the login keychain and the System keychain. If an expired WWDR certificate remains in either location, macOS can prefer it over the new one. The result is that every certificate chained to it shows This certificate has an invalid issuer with a red status, even though you just downloaded and double-clicked the new AppleWWDRCA.cer. This affects Apple Push Services certificates directly, but also breaks distribution and development certificates the same way.
Installing the new WWDR certificate alone is not enough if the expired copy is still present. You must remove the expired copy from both keychains.
How to fix it
1. Download and install the current WWDR intermediate certificate
Do not re-create your Push certificate yet. Fix the intermediate first.
- Download the current Apple Worldwide Developer Relations Certificate Authority from Apple:
https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
Apple also hosts it athttps://www.apple.com/certificateauthority/— the file name isAppleWWDRCA.cer. - Double-click the downloaded
AppleWWDRCA.cerfile. Keychain Access will open and install it. By default it goes to theloginkeychain, which is fine. You can also drag it to theSystemkeychain if you manage certificates there. - If Keychain Access asks where to add it, choose
loginand allow it.
You should now have a valid Apple Worldwide Developer Relations Certificate Authority with a future expiry date (for example, 2030 or later depending on the current G4/G5 intermediate). Do not delete this new one.
2. Delete the expired WWDR certificate from Login and System keychains
This is the step that actually clears the This certificate has an invalid issuer status. You must check both keychains.
- Open Keychain Access from
/Applications/Utilities/Keychain Access.app. - In the menu bar, choose View > Show Expired Certificates. Expired certificates are hidden by default, so you will not see the problem without this.
- In the left sidebar, select
loginunder Keychains. At the top, select theCertificatescategory. - In the search field, type
Apple Worldwide Developer Relations. - You will likely see two entries with the same name: one valid with a future expiry, and one expired (for example, Expires Feb 14, 2016 or another past date) marked with a red X.
- Select the expired Apple Worldwide Developer Relations Certificate Authority certificate and press Delete. Confirm deletion.
- Now select
Systemin the left sidebar under Keychains and repeat the same search. If an expired copy exists in System, delete it there as well. You will need an administrator password to modify the System keychain. This step is critical — leaving the expired copy in System will keep the error. - Keep View > Show Expired Certificates enabled while you verify, so you can confirm no expired WWDR remains in either keychain.
Do not delete your Apple Push Services certificate, your iOS Distribution certificate, or your private keys. Only delete the expired WWDR intermediate.
3. Verify your certificates and rebuild in Xcode
- Still in Keychain Access, select
My CertificatesorCertificatesand find your Apple Push Services certificate (it may be namedApple Push Services: com.your.bundle.idor similar) and your distribution certificate. - Double-click each one. The details should now say
This certificate is validwith a green checkmark and show the correct issuer chain: Apple Worldwide Developer Relations Certificate Authority > Apple Root CA. - Quit and reopen Xcode. Xcode caches signing identities, so a restart is needed.
- In Xcode, go to Settings > Accounts, select your Apple ID, and click Download Manual Profiles or refresh if you use manual signing. For automatic signing, Xcode will re-evaluate the identities on next build.
- Clean the build folder: Product > Clean Build Folder.
- Try building or archiving again. The invalid issuer warning should be gone and code signing should succeed.
If you previously deleted and re-created your Push certificate while the WWDR was broken, you do not need to create it again after fixing the intermediate. The existing certificate will become valid once the chain is fixed. If you did revoke it, create a new Apple Push Services certificate in Certificates, Identifiers & Profiles and download it, then double-click to install — it will now validate correctly.
4. If it still shows invalid issuer
- Confirm you deleted from both
loginandSystem. Most persistent cases are due to the System copy being left behind. - Confirm you installed the new
AppleWWDRCA.cerafter showing expired certificates — sometimes the new certificate was installed but hidden behind the expired one. - Restart your Mac. Keychain and Xcode can cache the validation result.
- Check the expiry date on the WWDR you kept. If you accidentally deleted the new one, download it again from Apple and reinstall.
- Make sure you are looking at the correct Mac. If you use multiple Macs or CI machines, each one needs the same fix.
How to prevent it
- When Apple announces a new WWDR intermediate, install it promptly on all development Macs and CI runners. Do not wait until archiving fails.
- After installing, always use View > Show Expired Certificates and remove the expired WWDR from both Login and System keychains.
- Avoid manually copying keychains between Macs without cleaning expired intermediates first.
- Keep macOS and Xcode updated. Newer Xcode versions often include the current WWDR, but a lingering expired copy can still override it.
- If you manage certificates for a team, document the WWDR expiry date and add a calendar reminder to check Keychain Access before major releases.
FAQ
Why does my Apple Push Services certificate show invalid issuer while other certificates look valid?
All Apple-issued certificates chain to the same WWDR intermediate. Push certificates are often created or renewed after a WWDR rotation, so they are the first to be signed by the new intermediate. If your Mac still has the old expired WWDR, only the newly issued certificates will appear broken, while older certificates that chained to the previous intermediate may still show as valid until they expire.
Do I need to delete the expired certificate from both Login and System keychains?
Yes. Keychain Access searches both keychains when building the trust chain. If the expired Apple Worldwide Developer Relations Certificate Authority remains in either location, macOS may use it and your certificates will continue to show This certificate has an invalid issuer. Delete it from both, then restart Xcode.
I installed the new AppleWWDRCA.cer but the error is still there. What did I miss?
You likely did not enable View > Show Expired Certificates, so the expired copy was still hidden and not deleted. Enable that setting, switch between the login and System keychains, and delete every expired WWDR entry. Keep the new one with the future expiry date. Then quit Keychain Access and Xcode and try again.
Parts of this guide are adapted from content licensed under CC BY-SA 3.0; this article is shared under the same license.
