Apache HTTPD And Apache Tomcat

 HI, How can I tell if we're running NIO JSSE or NIO Openssl conf/server.xml:

mike munger's profile image
mike munger posted Jun 05, 2023 10:16 PM

 

Terus Technology's profile image
Terus Technology

To determine whether your application is using NIO JSSE or NIO OpenSSL in the conf/server.xml configuration, you can check the following:

  1. NIO JSSE: If the <Connector> element in conf/server.xml uses the "org.apache.tomcat.util.net.NioEndpoint" as the className attribute, and the sslImplementationName attribute is not present or is set to "org.apache.tomcat.util.net.jsse.JSSEImplementation", then your application is using NIO JSSE.

Example:

xml
<Connector port="8443" protocol="org.apache.tomcat.util.net.NioEndpoint"
           connectionTimeout="20000" 
           redirectPort="8443" />
  1. NIO OpenSSL: If the <Connector> element in conf/server.xml uses the "org.apache.tomcat.util.net.NioEndpoint" as the className attribute, and the sslImplementationName attribute is set to "org.apache.tomcat.util.net.openssl.OpenSSLImplementation", then your application is using NIO OpenSSL.

Example:

xml
<Connector port="8443" protocol="org.apache.tomcat.util.net.NioEndpoint"
           connectionTimeout="20000"
           redirectPort="8443"
           sslImplementationName="org.apache.tomcat.util.net.openssl.OpenSSLImplementation" />

The key difference is the presence or absence of the sslImplementationName attribute and its value. If the attribute is not present or is set to the JSSE implementation, it's using NIO JSSE. If the attribute is present and set to the OpenSSL implementation, it's using NIO OpenSSL.

Hope this will help you.

Terus Technology