users@glassfish.java.net

Re: Glassfish with SmartCard

From: Harsha R A <Harsha.Ra_at_Sun.COM>
Date: Thu, 18 Oct 2007 20:08:20 +0530

Can you please try the suggestions in

http://forum.java.sun.com/thread.jspa?messageID=2784409&tstart=0

specifically,
1. use the following flags
-Djava.security.debug=sunpkcs11,pkcs11
2. delete the "enabledMechanisms" attribute in PKCS#11 configuration file

Thanks
Harsha
glassfish_at_javadesktop.org wrote:
> Hi,
> I have a many problems with Glaassfish , NSS and SmartCard.
> Howto: http://developers.sun.com/appserver/reference/techart/keymgmt.html
> SmartCard contain the server certificate and the server PrivateKey with alias "s1as".
> Glassfish server check the certificate and private key on the smartcard but not run.
> java exeption :
> java.lang.IllegalStateException: PKCS11 not found
> at com.sun.enterprise.security.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:114)
> at com.sun.enterprise.ee.security.EESecuritySupportImpl.loadSunPKCS11Stores(EESecuritySupportImpl.java:256)
> at com.sun.enterprise.ee.security.EESecuritySupportImpl.initNSS(EESecuritySupportImpl.java:153)
> at com.sun.enterprise.ee.security.EESecuritySupportImpl.<init>(EESecuritySupportImpl.java:95)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:84)
>
> Do you have a solution?
> [Message sent by forum member 'chris_krosk' (chris_krosk)]
>
> http://forums.java.net/jive/thread.jspa?messageID=240899
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>