Skip to content
Advertisement

SSL Windows Certification Error on Tomcat 9

SSL is enabled in my server Tomcat 7.0.108. I enabled it according to this answer https://stackoverflow.com/a/48883483

My Connector in serverx.xml is :

JavaScript

But, in Tomcat 9.0.45 same configuration has an error.

JavaScript

Is anyone enable SSL with Tomcat 9 using Windows Certs?

Advertisement

Answer

The error is caused by the SSLImplementation selected by Tomcat: the OpenSSLImplementation requires direct access to the private key, which is impossible if you use the Windows-MY keystore.

You just need to switch to JSSEImplementation, which results in the following configuration:

JavaScript

The default value of sslImplementationName automatically switches from JSSEImplementation to OpenSSLImplementation, whenever the Tomcat Native library is present (which is common on Windows): cf. Tomcat Documentation.

Remark that since Tomcat 8.5 the SSL configuration syntax changed. The one you use in your question has been deprecated in Tomcat 8.5 and removed from Tomcat 10.0.

Advertisement