在Tomcat中应用SSL
我正在尝试在Tomcat上应用SSL。据我所知,这是两个步骤的过程。第一步是设置我创建的keypace文件,第二步是相应地修改server.xml文件。 第一部分很成功 关于server.xml的部分如下所示:在Tomcat中应用SSL,tomcat,ssl,Tomcat,Ssl,我正在尝试在Tomcat上应用SSL。据我所知,这是两个步骤的过程。第一步是设置我创建的keypace文件,第二步是相应地修改server.xml文件。 第一部分很成功 关于server.xml的部分如下所示: <!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false"
disableUploadTimeout="true" enableLookups="false" maxThreads="25"
port="8443" keystoreFile="/temp/keyplace" keystorePass="myPass"
protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
secure="true" sslProtocol="TLS"/>
但当我尝试调用apache时,服务器尝试连接,最终超时
感谢您的回答首先,检查您的密钥库是否正确设置
查看您的配置文件,下面的命令应该告诉您是否已经创建了证书-keytool-list-keystore/temp/keyplace而不是keystrefile=“/temp/keyplace”,它应该是keystrefile=“c:/temp/keyplace”谢谢您的回答。我已经这样做了,而且非常好。它在cmd上产生了指纹