Starting in Strategy ONE (June 2024), Tomcat has been upgraded from 9 to 10.1.x. Some deprecated HTTPS configuration properties are available in Tomcat 9, but have been removed in Tomcat 10.1.x. You must adjust these configurations with their corresponding properties in Tomcat 10.1.x.
[$TOMCAT_HOME]\conf\server.xml.
Connectorthat has
scheme="https"to utilize properties supported in Tomcat 10.1.x, replacing those that have been deprecated or removed. The new configuration is equivalent to the previous one.This table only shows some property mappings between the previous release and the new one. For a detailed list, see Apache Tomcat 9 Configuration Reference (9.0.90) - The HTTP Connector.
Tomcat 9 | Tomcat 10 | ||
|---|---|---|---|
XML Node | XML Attribute | XML Node | XML Attribute |
Connector | clientAuth | SSLHostConfig | certificateVerification |
Connector | sslProtocol | SSLHostConfig | sslProtocol |
Connector | keystorePass | Certificate | certificateKeystorePassword |
Connector | keystoreFile | Certificate | certificateKeystoreFile |
Connector | keystoreType | Certificate | certificateKeystoreType |
Connector | keystoreProvider | Certificate | certificateKeystoreProvider |
UpgradeProtocol | compression | Connector | compression |
UpgradeProtocol | compressionMinSize | Connector | compressionMinSize |
<Connector SSLEnabled="true" clientAuth="false" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" sslProtocol="TLSv1.2" server="Strategy" scheme="https" secure="true" keystorePass="$PWD$" keystoreFile="$KEYSTORE_PATH$" compression="on" compressionMinSize="1024" ciphers="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" compression="on" compressionMinSize="1024"/> </Connector>After:
<Connector SSLEnabled="true" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" server="Strategy" scheme="https" secure="true" compression="on" compressionMinSize="1024" ciphers="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"> <SSLHostConfig certificateVerification="none" sslProtocol="TLSv1.2"> <Certificate certificateKeystorePassword="$PWD$" certificateKeystoreFile="$KEYSTORE_PATH$"/> </SSLHostConfig> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"/> </Connector>In the above example, the
UpgradeProtocolnode inherits the
compressionand
compressionMinSizefrom the
Connectorfor Tomcat 10.1.x. This means you can remove them from the
UpgradeProtocolnode. See Apache Tomcat 10 Configuration Reference (10.1.25) - The HTTP2 Upgrade Protocol for more properties inherited from
Connectorfor HTTP/2 upgrade protocol.For more examples, see Apache Tomcat 10 (10.1.25) - SSL/TLS Configuration How-To.