Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Tomcat中应用SSL_Tomcat_Ssl - Fatal编程技术网

在Tomcat中应用SSL

在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

我正在尝试在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 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上产生了指纹