Skip to main content

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 

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


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.