users@glassfish.java.net

Re: Glassfish with SmartCard

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 05:03:09 PDT

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