Remove unneeded certificates

I have run a test on my server (vs 5.6/10.13.4) and I have unnecessary certificates, including a root certificate. Problem is I don't know which ones can be removed safely. I have attached some pictures. Thanks for your time - it's much appreciated.


User uploaded file

User uploaded file

Posted on Apr 12, 2018 7:35 PM

Reply
1 reply

Apr 15, 2018 9:40 PM in response to pkmusic

Looking at your list of Certificates in Server, I would save ALL of those. Two are generated by Open Directory (Issuer is ~IntermediateCA) and one is used by Profile Manager (Code Signing Certificate). The third looks like your properly acquired signed certificate. If anything goes wrong with your signed certificate, and the server falls back to the other certificate, any enrolled devices will correctly recognise it, and you don't have a third party Code Signing certificate, so if you want to sign Profiles from Profile Manager, you'll need that one.


I'd be careful about digging around and deleting things directly from System Keychain. You could delete "Server Fallback SSL Certificate". However, before deleting ANYTHING from System.keychain, I'd recommend creating a new keychain, and COPYING (option-drag) anything you intend on deleting from System.keychain to that new keychain before deleting, and when you're all done, CAREFULLY choose to delete the new Keychain, BUT ONLY DELETE REFERENCES. That removes the keychain from being considered but leaves the files in the Finder (~/Library/Keychains/whatever-you-named-it.keychain). Maybe back up those files before deleting from Keychain Access. Then, if you accidentally deleting anything you shouldn't have, you can get it back.


The other thing you can do, is filter by My Certificates, and then it groups any valid certificates in your keychain with the certificate AND key. Then, when you export that, it creates a .p12, which is pretty easy to restore, and/or break back up into separate certificate and key PEM files. Here's a great openssl resource I've used for such commands: https://www.sslshopper.com/article-most-common-openssl-commands.html.Of course, you don't need to group by My Certificates, but the .p12 files are a nice way to save all the necessary pieces of a certificate.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Remove unneeded certificates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.