tomcat配置https方法
2017-10-11 17:27
295 查看
String url ="https://127.0.0.1:8443/Seal" + SealClient.SLASH +SealClient.BUSINESS_SEAL_SERVLET;
SealClient sealClient = new SealClient(url,"./testData/cert/client.pfx", "cfca1234","./testData/cert/client.jks", "cfca1234");
2、D:\apache-tomcat-7.0.69加入server.jks
3、修改D:\apache-tomcat-7.0.69\conf\server.xml
加入代码
<Connector port="8443"protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150"SSLEnabled="true" scheme="https" secure="true"
clientAuth="false"sslProtocol="TLS"
keystoreFile="server.jks"keystorePass="cfca1234"
truststoreFile="server.jks"truststorePass="cfca1234"/>
遇到问题:javax.net.ssl.SSLHandshakeException:Received fatal alert: handshake_failure
JDK版本与tomcat不匹配
注意:JDK1.6配置tomcat 6 JDK1.7配置tomcat7才能访问成功
clientAuth="false"表示单项认证,clientAuth="true"表示双向认证。
相关文章推荐
- 【网页访问单向、双向验证均可以】https原理及tomcat配置https方法[生成CA根证书配置tomcat后,若要成功访问axis中的webservice,需要配置它对应的axis2.xml文件]
- https原理及tomcat配置https方法
- tomcat开启https配置过程中的问题以及解决方法
- https原理及tomcat配置https方法
- https单向/双向认证及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- 详解 Nginx + Tomcat HTTPS/SSL 配置方法
- https原理及tomcat配置https方法
- 详解 Nginx + Tomcat HTTPS/SSL 配置方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- https原理及tomcat配置https方法
- linux tomcat配置https的方法
- https原理及tomcat配置https方法