org.mozilla.jss.tests
Class TestKeyGen
java.lang.Object
org.mozilla.jss.tests.TestKeyGen
public class TestKeyGen
extends java.lang.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.
static void | main(String[] args)
|
main
public static void main(String[] args)