Tomcat配置SSL支持出现java.lang.IllegalArgumentException: None of the [protocols] specified are supported by the SSL engine : [[TLS]] 问题解决

一个Java的应用要配置TLS支持,按照软件的安装说明,给Tomcat的Server.xml中添加


重新启动Tomcat后,提示如下严重出错信息

严重 [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["https-jsse-nio2-9443"]
 java.lang.IllegalArgumentException: None of the [protocols] specified are supported by the SSL engine : [[TLS]]
        at org.apache.tomcat.util.net 

.SSLUtilBase.getEnabled(SSLUtilBase.java:90)

经过一番网上搜索和尝试,发现添加如下几行内容到端口8443的配置中,重启Tomcat后问题解决

 SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"
 ciphers="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
 SSLCipherSuite="ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4"

Popularity: 13% [?]

Random Posts

Comments

Comments are closed.