gpt4 book ai didi

tomcat - 在 Tomcat 中应用 SSL

转载 作者:行者123 更新时间:2023-11-28 23:36:54 25 4
gpt4 key购买 nike

我正在尝试在 Tomcat 上应用 SSL。据我了解,这是 2 个步骤的过程。第一步是设置我制作的 keyplace 文件,第二步是相应地修改 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 时,服务器会尝试连接并最终超时

谢谢你的回答

最佳答案

首先,检查您的 keystore 是否设置正确。

查看您的配置文件,以下命令应该告诉您您的证书是否已创建 - keytool -list -keystore/temp/keyplace

关于tomcat - 在 Tomcat 中应用 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23892590/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com