Hi,

I have an applet that uses JSS to import an RSA keypair into Firefox's
keystore, as per the following code.
        
       
CryptoManager.initialize("C:\Users\James\AppData\Roaming\Mozilla\Firefox\Profiles\y78kp7l6.default");
        CryptoManager manager = CryptoManager.getInstance();
        CryptoToken token = manager.getInternalKeyStorageToken();
        manager.setThreadToken(token);
        CryptoStore store = token.getCryptoStore();
        store.importPrivateKey(privateKey.getEncoded(),
org.mozilla.jss.crypto.PrivateKey.RSA);
        X509Certificate cert = manager.importCertPackage(pkcs7, "My Cert");

The import is successful but the new certificate is not listed in
Certificate Manager until Firefox is restarted.

Is there any way of refreshing the keystore without having to restart
Firefox?

Basically I like to be able to use the new certificate immediately in a
client authentication SSL session.

Many thanks.
James


-- 
View this message in context: 
http://old.nabble.com/How-to-refresh-Firefox-keystore-tp29042183p29042183.html
Sent from the Mozilla - Cryptography mailing list archive at Nabble.com.

-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to