Using SSL with Playframework -


i'm attempting use ssl playframework 1.2.5 application can't seem work.

i have ssl certificate godaddy. reference key & crt files application.conf follows:

%prod.https.port=443 %prod.certificate.key.file=conf/hawkanalytics.key %prod.certificate.file=conf/hawkanalytics.com.crt 

however, i'm getting following error when attempting access application:

22:49:33,836 info  ~ listening https on port 443 ... java.lang.nullpointerexception         @ play.server.ssl.sslhttpservercontextfactory$pemkeymanager.<init>(sslhttpservercontextfactory.java:94)         @ play.server.ssl.sslhttpservercontextfactory$pemkeymanager.<clinit>(sslhttpservercontextfactory.java:79)         @ play.server.ssl.sslhttpservercontextfactory.<clinit>(sslhttpservercontextfactory.java:47)         @ play.server.ssl.sslhttpserverpipelinefactory.getpipeline(sslhttpserverpipelinefactory.java:29)         @ org.jboss.netty.channel.socket.nio.nioserversocketpipelinesink$boss.registeracceptedchannel(nioserversocketpipelinesink.java:274)         @ org.jboss.netty.channel.socket.nio.nioserversocketpipelinesink$boss.run(nioserversocketpipelinesink.java:239)         @ org.jboss.netty.util.threadrenamingrunnable.run(threadrenamingrunnable.java:102)         @ org.jboss.netty.util.internal.deadlockproofworker$1.run(deadlockproofworker.java:42)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1146)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:679) 22:49:43,372 error ~ java.lang.nullpointerexception         @ play.server.ssl.sslhttpservercontextfactory$pemkeymanager.<init>(sslhttpservercontextfactory.java:94)         @ play.server.ssl.sslhttpservercontextfactory$pemkeymanager.<clinit>(sslhttpservercontextfactory.java:79)         @ play.server.ssl.sslhttpservercontextfactory.<clinit>(sslhttpservercontextfactory.java:47)         @ play.server.ssl.sslhttpserverpipelinefactory.getpipeline(sslhttpserverpipelinefactory.java:29)         @ org.jboss.netty.channel.socket.nio.nioserversocketpipelinesink$boss.registeracceptedchannel(nioserversocketpipelinesink.java:274)         @ org.jboss.netty.channel.socket.nio.nioserversocketpipelinesink$boss.run(nioserversocketpipelinesink.java:239)         @ org.jboss.netty.util.threadrenamingrunnable.run(threadrenamingrunnable.java:102)         @ org.jboss.netty.util.internal.deadlockproofworker$1.run(deadlockproofworker.java:42)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1146)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:679) 22:49:43,504 debug ~ invalid certificate javax.net.ssl.sslhandshakeexception: no cipher suites in common         @ sun.security.ssl.handshaker.checkthrown(handshaker.java:1031)         @ sun.security.ssl.sslengineimpl.checktaskthrown(sslengineimpl.java:508)         @ sun.security.ssl.sslengineimpl.readnetrecord(sslengineimpl.java:759)         @ sun.security.ssl.sslengineimpl.unwrap(sslengineimpl.java:727)         @ javax.net.ssl.sslengine.unwrap(sslengine.java:624)         @ org.jboss.netty.handler.ssl.sslhandler.unwrap(sslhandler.java:938)         @ org.jboss.netty.handler.ssl.sslhandler.decode(sslhandler.java:656)         @ org.jboss.netty.handler.codec.frame.framedecoder.calldecode(framedecoder.java:317)         @ org.jboss.netty.handler.codec.frame.framedecoder.messagereceived(framedecoder.java:207)         @ org.jboss.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:75)         @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564)         @ org.jboss.netty.channel.defaultchannelpipeline$defaultchannelhandlercontext.sendupstream(defaultchannelpipeline.java:792)         @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:296)         @ org.jboss.netty.handler.codec.frame.framedecoder.unfoldandfiremessagereceived(framedecoder.java:352)         @ org.jboss.netty.handler.codec.frame.framedecoder.calldecode(framedecoder.java:334)         @ org.jboss.netty.handler.codec.frame.framedecoder.messagereceived(framedecoder.java:207)         @ org.jboss.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:75)         @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564)         @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:559)         @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:268)         @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:255)         @ org.jboss.netty.channel.socket.nio.nioworker.read(nioworker.java:94)         @ org.jboss.netty.channel.socket.nio.abstractnioworker.processselectedkeys(abstractnioworker.java:372)         @ org.jboss.netty.channel.socket.nio.abstractnioworker.run(abstractnioworker.java:246)         @ org.jboss.netty.channel.socket.nio.nioworker.run(nioworker.java:38)         @ org.jboss.netty.util.threadrenamingrunnable.run(threadrenamingrunnable.java:102)         @ org.jboss.netty.util.internal.deadlockproofworker$1.run(deadlockproofworker.java:42)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1146)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:679) 

check if ".key" file using rsa private key or private key.

play framework seems need rsa private key header "-----begin rsa private key-----"

to convert: how convert private key rsa private key?.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -