On 06/30/2010 10:47 PM, james07 wrote: > 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? > That's wierd, it should show up right away, unless PSM is caching that information. Are you importing into the softoken or a hardware token. > Basically I like to be able to use the new certificate immediately in a > client authentication SSL session. > That should happen immediately if you really did import it into the token.
bob > Many thanks. > James > > >
-- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto