【发布时间】:2017-11-04 21:26:22
【问题描述】:
我已经在 java 中创建了我的 Rest API,并且可以正常使用 HTTP。但为了确保运输安全,我在 eclipse 中对 server.xml 文件进行了一些更改。
首先我为此创建了自签名证书和密码,并在 server.xml 文件中提到了该信息,如下所示(全部在 Windows 7 中完成)
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="E:\\SSL\\Certificate.pfx" keystorePass="Certificate123" />
但仍然无法使用 HTTPS 连接网络服务器。
谁能告诉我这里做错了什么?
【问题讨论】:
标签: java windows rest ssl https