users@glassfish.java.net

Glassfish 3 SSL issues

From: <forums_at_java.net>
Date: Wed, 27 Jul 2011 10:37:52 -0500 (CDT)

 Hi,

 

I'm trying to configure SSL on Glassfish Open Source Edition 3.1 (build 43),
following the guidelines in
http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/

 

After I change the certificate nickname (IP address according to the URL
above) and key store name ("server.keystore" according to the URL above) the
server stops responding on the SSL port.

 

What Am I doing wrong?

 

The server log contains the following:

 

GRIZZLY0007: SSL support could not be configured! java.io.IOException: SSL
configuration is invalid due to No available certificate or key corresponds
to the SSL cipher suites which are enabled. at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.checkConfig(JSSE14SocketFactory.java:455)
at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:183)
at
com.sun.grizzly.config.SSLConfigHolder.initializeSSL(SSLConfigHolder.java:361)
at
com.sun.grizzly.config.SSLConfigHolder.configureSSL(SSLConfigHolder.java:237)
at
com.sun.grizzly.config.GrizzlyEmbeddedHttps$LazySSLInitializationFilter.execute(GrizzlyEmbeddedHttps.java:202)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:636) Caused by:
javax.net.ssl.SSLException: No available certificate or key corresponds to
the SSL cipher suites which are enabled. at
sun.security.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:327)
at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:272)
at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.checkConfig(JSSE14SocketFactory.java:451

 

ProtocolChain exception java.lang.NullPointerException at
com.sun.grizzly.filter.SSLReadFilter.newSSLEngine(SSLReadFilter.java:352) at
com.sun.grizzly.filter.SSLReadFilter.obtainSSLEngine(SSLReadFilter.java:399)
at com.sun.grizzly.filter.SSLReadFilter.execute(SSLReadFilter.java:159) at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:636)

 

 

 

Thanks in advance,

 


--
[Message sent by forum member 'green.ronald']
View Post: http://forums.java.net/node/826817