tomcat9中设置jks证书和pfx证书
jks证书设置server.xml
<Connector
port="443"
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="1000"
connectionTimeout="30000"
maxPostSize="-1"
enableLookups="false"
disableUploadTimeout="true"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2"
keystoreFile="/usr/local/tomcat9/cert2023/xxx.com.jks"
keystorePass="mima"
relaxedPathChars="|{}[]^\`"<>'&"
relaxedQueryChars="|{}[]^\`"<>'&"
/>
pfx证书设置
<Connector
port="443"
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="1000"
connectionTimeout="30000"
maxPostSize="-1"
enableLookups="false"
disableUploadTimeout="true"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2"
keystoreFile="/usr/local/tomcat9/cert2023/xxx.com.pfx"
keystorePass="xxxmima"
truststoreType="PKCS12"
relaxedPathChars="|{}[]^\`"<>'&"
relaxedQueryChars="|{}[]^\`"<>'&"
/>