Skip to main content
Question

Unable to delete stored keychain certificate

  • Nov 19, 2024 5:04 PM UTC
  • 2 replies
  • 143 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
  • Nov 19, 2024 7:37 PM UTC

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
  • Nov 19, 2024 7:49 PM UTC

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.