<div dir="ltr"><div><div><div><div><div><div><div>Hey guys,<br><br></div>I'm currently writing some code to add certificates to a profile. I'm using Components.interfaces.nsIX509CertDB2 with the addCertFromBase64() function to add some special ones at launch. <br>


<br>However, I want to be able to remove certs that may already exist in the profile. I started looking around and found the Components.interfaces.nsIX509CertList interface which contains the deleteCert() method. I couldn't find any documentation with it though. Either way, this function accepts an object of type nsIX509Cert.<br>


<br></div>How would I be able to:<br><br></div>1) Look through the currently added certs and identify the ones I'm looking to remove<br></div>2) Convert those into nsIX509Cert objects (if needed)<br></div>3) Use the interface to remove them<br>


<br></div>Has anyone ever dealt with things like this? Am I even going about it the correct way?<br><br></div>Thanks!<br></div>