I have managed to get JSS working separately from my code on both Linux and
Windows. It works ok with org.mozilla.jss.tests.ListCACerts and my Firefox
profile if run from command line like this
>java org.mozilla.jss.tests.ListCACerts profile_name
But when I am launching my application that requests server through ssl java
prompts to choose client certificate. Should I write code in my app
initializing JSS, getting cert from Mozilla etc. or it should work
automatically like when cert is in IE? There is nothing said about this on
java help. Exactly from
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/keystores.html
> Certificates and keys in Mozilla are recognized by Java Plug-in and Java
Web Start when Java applications and applets are deployed on Linux and
Solaris.Java Plug-in and Java Web Start will enable the Mozilla keystore
support appropriately after JSS is deployed.


2009/7/14 Glen Beasley <glen.beas...@sun.com>

>  "On 7/13/09 11:40 PM, Dmitriy Varnavskiy wrote:
>
> Still cant make it working. Are there any suggestions?
>
> 2009/7/4 Nelson B Bolyard <nel...@bolyard.me> <nel...@bolyard.me>
>
> On 2009-07-03 10:52 PDT, Dmitriy Varnavskiy wrote:
> > I have run several tests of JSS on Linux - they all worked fine so seems
> > JSS is correctly installed. But when I am launching my app java for some
> > reason is not using certificates in firefox keystore.
>
>  It is most likely that you are not providing the correct location to
> firefox cert and key database.
>
> Firefox builds/installs WIN95 version of NSPR/NSS, and if you're
> running an applet within firefox then that applet needs JSS's JNI dependent
> library built WIN95.
>
> Firefox builds NSPR/NSS with the OS_TARGET=WIN95, follow the
> JSS build instructions and build JSS with the WIN95 OS_TARGET.
> Note: JSS WIN95 binary is not provided on ftp.mozilla.org you need to
> build it yourself.
> You can use the signed jss4.jar from ftp.mozilla.org provide you make no
> changes to jss and you're just building the jss4.dll for the WIN95 target.
>
> The JSS build instructions:
>
> http://www.mozilla.org/projects/security/pki/jss/jss_build_4.2.5.html
>
> The install instructions:
>
>
> http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/keystores.html
>
> Firefox already has nspr/nss installed you need to use these version and
> not install your
> own especially not the WINNT versions, just install the matching win95
> version of JSS.
>  If you cannot get this to work please create a JSS bug and attach
> your sample applet with the steps you have taken
>
> so far.
> https://bugzilla.mozilla.org/
>
> -glen
>
>
>
> --
> dev-tech-crypto mailing list
> dev-tech-crypto@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-crypto
>
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to