Home » Support » Forum » SSL Problem

SSL Problem

#1

Hello,
I have a problem to use the server with ssl. I have created the certificate using this command:

keytool-genkeypair-dname "cn = Mark Jones, ou = JavaSoft, o = Sun, c = U.S."-alias business-keypass kpi135-keystore-storepass mykeystore ab987c-validity 180

Then I put in the configuration file objectdb:

<ssl enabled="true">
    <server-keystore path="$objectdb/ssl/mykeystore" password="ab987c" />
    <client-truststore path="$objectdb/ssl/mykeystore" password="ab987c" />
</ssl>

When I start the server I get only the word null and the server will not start.

What's wrong?

 

Thanks

#2

Please check if additional information is available in the log file.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

In the log file there are these lines:

[2012-12-18 09:04:35 #1 server]
java.lang.NullPointerException
at com.objectdb.o.SSL.e(SSL.java:137)
at com.objectdb.o.SCG.<init>(SCG.java:100)
at com.objectdb.o.SMR.<init>(SMR.java:129)
at com.objectdb.Server.runCommand(Server.java:202)
at com.objectdb.Server.run(Server.java:107)
at com.objectdb.Server.main(Server.java:66)

#4

It was a bug. Thanks you for your report. Build 2.4.5_01 should fix it.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#5

thanks for the reply.

I installed the latest version of the software and now I get this error:

[2012-12-18 19:02:43 #1 server]
java.security.UnrecoverableKeyException: Cannot recover key
at sun.security.provider.KeyProtector.recover(KeyProtector.java:328)
at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:138)
at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:55)
at java.security.KeyStore.getKey(KeyStore.java:792)
at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:131)
at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:68)
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:259)
at com.objectdb.o.SSL.k(SSL.java:271)
at com.objectdb.o.SSL.j(SSL.java:241)
at com.objectdb.o.SSL.h(SSL.java:212)
at com.objectdb.o.SMR.P(SMR.java:266)
at com.objectdb.o.SMR.n(SMR.java:192)
at com.objectdb.o.TOL.run(TOL.java:115)
at com.objectdb.Server.runCommand(Server.java:202)
at com.objectdb.Server.run(Server.java:107)
at com.objectdb.Server.main(Server.java:66)
#6
ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login