org.mozilla.jss.tests
Class TestKeyGen
public
class
TestKeyGen
extends Object
Note: when this program is run, it must have a key3.db WITH A PASSWORD
SET in the directory specified by the argument. The first time the
program is run, a key3.db file will be created, but it will not have
a password. This will result in the error:
Token error: org.mozilla.jss.crypto.TokenException: unable to login to token
To create a database with a password, you can:
use the modutil or keyutil tool,
use the JSS API CryptoToken.changePassword() to set the password
run the test 'TokenAccessTest'
which will create db with a password.
public static void main(String[] args)