David Stutzman wrote:
Is it possible to create a security DB using JSS? I can't find any methods that look like they fit. I found mention of something in the comments of http://mxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/TestKeyGen.java#47

that says:
47  *   run the test 'TokenAccessTest'
48  *            which will create db with the password 'netscape'.

But I can't find any mention of that in the rest of the JSS sources.

Is this something that can only be done from NSS?

Thanks,
Dave
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto
You can use JSS,

http://lxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/SetupDBs.java

example:
java org.mozilla.jss.tests.SetupDBs <directorytoCreateDBs> <passwordFile>

also take a look at
http://lxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/all.pl
http://lxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/passwords


Quick instructions to use all.pl
set JAVA_HOME
cvs co mozilla/security/nss mozilla/security/jss mozilla/security/coreconf mozilla/nsprpub mozilla/dbm mozilla/security/dbm cd mozilla/security/nss gmake nss_build_all (I assume your environment is set to build NSS)
cd ../jss
gmake
cd org/mozilla/jss/tests
perl all.pl dist <..../mozilla/dist/Platform you build on>

Some tests will fail since you won't have the JCA code signing certificate to sign the JSS jar.

-glen


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

Reply via email to