On 06/12/2022 08:50, Torsten Krah wrote:
Hi,

using tomcat-embed 9.x I was able to customize my protocol handler like
this:

AbstractHttp11Protocol<?> httpHandler = ((AbstractHttp11Protocol<?>) 
connector.getProtocolHandler());
httpHandler.setSSLHonorCipherOrder(true);
httpHandler.setUseServerCipherSuitesOrder(true);


Switched to 10.1.1 now and those 2 methods are gone and I am wondering
where they are now and how to access them when coming from the
connector.

Those two methods do the same thing. One was for JSSE based connectors, one for APR/Native (OpenSSL). Now there is a single method. This should do what you need:

SSLHostConfig[] sslHostConfigs = httpHandler.findSslHostConfigs();

for (SSLHostConfig sslHostConfig : sslHostConfigs) {
    sslHostConfig.setHonorCipherOrder(true);
}


Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to