Hi,
thank you for the hint. It works fine.

Regards Florian

Wan-Teh Chang wrote:
Florian Bernstein wrote:

Hello,

I'm looking for a way to remove a imported certificte. Is this possible with jss or do I need to do this with nss?


I'm not a JSS expert, but this is such a common operation
that I'll be surprised if it can't be done in JSS.

I found a CryptoStore interface in JSS, and this interface
has a deleteCert method.

http://www.mozilla.org/projects/security/pki/jss/javadoc/org/mozilla/jss/crypto/CryptoStore.html

The PK11Cert class has a getOwningToken method that returns
a CryptoToken.  (Other certificate classes or interfaces may
also have a getOwningToken method.)  The CryptoToken interface
has a getCryptoStore method that returns a CryptoStore.

Hopefully this will enable you to remove an imported
certificate.

Wan-Teh

_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to