crt 转换为jks
openssl pkcs12 -export -in genkicell.io.crt -inkey genkicell.io.key -out genkicell_and_key.p12 -name weblogic -passout pass:111111
keytool -importkeystore -srckeystore genkicell_and_key.p12 -srcstoretype PKCS12 -deststoretype JKS -destkeystore genkicell.jks
web.xml 配置
<login-config>
<!-- Authorization setting for SSL -->
<auth-method>CLIENT-CERT</auth-method>
<realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
<!-- Authorization setting for SSL -->
<web-resource-collection >
<web-resource-name >SSL</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
server.xml 配置
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="conf/genkicell.jks"
keystorePass="123456"
clientAuth="false" sslProtocol="TLS" />