Search code examples
certificatekeychain

Remove Apple Worldwide Developer Relations Certification Authority from System Keychain


Since the Apple Worldwide Developer Relations Certification Authority expired on February 14th, I need to install the new one. In order to do so, I have to delete the old one from both System and Login tabs in my keychain.

Removing it from the login tab was easy and instantaneous. But removing it from the System tab is impossible. I can see it in my system tab, stating that it is expired:

enter image description here

When I try to delete it, I'll get the following error:

enter image description here

I need to delete it so I could upload apps to the appStore. Meanwhile, I am stuck and can't do anything. What can I do to delete it!?

This is what I always get if I try to unlock the Systems Tab:

enter image description here

This is what Xcode gives me:

enter image description here


Solution

  • The answer for any future developers having the same problem is really simple :

    • Restart your Mac
    • While restarting hold on Command + R , this will boot up your mac in the "sudo" mode, allowing you to write bash command. Please note that writing the following command is really safe and risk free, but as always while dealing with systematic commands, make sure your backup is near by!
    • When loaded, go to utilities, terminal.
    • First, write : csrutil status . This will show you the status of SIP. Your goal will be to disable the SIP ( System Integrity Protection ). After checking the status, most likely you will find the status Enabled.
    • When you find it enabled, write : csrutil disable . This will disable the SIP.
    • Restart your mac, open keychain, and you will be capable of deleting any stuck certificate, including the expired WWDR.

    Hope it will help someone in the future!!