Skip to main content
Question

Unable to delete stored keychain certificate

  • November 19, 2024
  • 2 replies
  • 21 views

Forum|alt.badge.img+3

When running the following command:

sudo security delete-certificate -c "NameOfCert"  /Library/Keychains/System.keychain

 

I'm getting:

Unable to delete certificate matching "NameOfCert"

 

I'm building a job to deploy to multiple endpoints to clear out a wifi profile cert that isn't working. Thanks in advance for any assistance 

2 replies

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • November 19, 2024

How was the certificate originally deployed to the computers? If you deployed it using a configuration profile, you may need to remove the profile.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • November 19, 2024

How was the certificate originally deployed to the computers? If you deployed it using a configuration profile, you may need to remove the profile.


Was sent via a config profile. I removed the scope from the machines but cert still remains present.