How do I delete bad certificates from Xcode 8?

Viewed 3703

I'm new to iOS development, and I can't figure out how to delete bad certificates from Xcode 8. I feel like I've searched everywhere, but I can't find a straightforward answer.

Here's what I tried (couple images below):

In Xcode, I go to Preferences and then the Accounts tab, and then I click on my Apple ID login. I have 2 different teams - a personal one, and a company enterprise team.

When I click on my personal account, and go to Manage Certificates, there's an old certificate that uses an incorrect email I used before, and it says status Not in Keychain. But when I right click on it all the options, such as Delete Certificate are grayed out. How can I delete this? I really don't want it there because it seems messy.

Then when I go to my company team, and go to Manage Certificates, there's a certificate that I had accidentally revoked through the Portal that is now named Untitled. And when I right click on it, the Delete Certificate is also grayed out.

How can I get rid of these certificates?




1 Answers

I had a couple of Untitled certificates as well and after a lot of digging was able to delete them through the keychain app. When you open keychain, under login / My Certificates I had a few certificates which were either expired or revoked causing them to show up as Untitled in Xcode. I simply deleted the certs in keychain and they then disappeared in Xcode.

Related