AnsweredAssumed Answered

Error sending mail: Invalid keystore format

Question asked by thenetstriker on Dec 22, 2014
Latest reply on Dec 30, 2014 by zydoon
I've configured my Alfresco (5.0.c) installation to send mails over smtp.office365.com, but I get errors regarding the java keystore.

The exception is very long, so I've uploaded it to pastebin: http://pastebin.com/bfX64aVF

At the bottom of the exception is the interesting part:

Caused by: java.io.IOException: Invalid keystore format
   at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
   at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
   at java.security.KeyStore.load(Unknown Source)
   at sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(Unknown Source)
   at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultTrustManager(Unknown Source)
   at sun.security.ssl.SSLContextImpl$DefaultSSLContext.<init>(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   … 117 more

My cacerts keystore is in JCEKS format. I think for some reason Alfresco tries to load the keystore in a different format.
I've already tried to set the JAVA_OPTS in setenv.sh, but that didn't make any difference:
JAVA_OPTS="-Djavax.net.ssl.keyStoreType=JCEKS $JAVA_OPTS "

How can I solve this problem?

Outcomes