gpt4 book ai didi

Tomcat 7.0.53 SSL 连接未连接

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

我正在尝试通过使用以下 server.xml 文件将 tomcat 与 SSL 结合使用

<!--Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the BIO implementation that requires the JSSE
style configuration. When using the APR/native implementation, the
OpenSSL style configuration is required as described in the APR/native
documentation -->
<Connector port="8443" protocol="HTTP/1.1"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
SSLCertificateFile="/home/Desktop/keys/cert.pem"
SSLCertificateKeyFile="/home/Desktop/keys/key.pem"
SSLPassword="pass"
/>

而且我的 chrome 控制台中不断出现错误,即 GET http://localhost:8443/net::ERR_CONNECTION_RESET。根据tomcat的日志,启动服务器好像没有报错

Sep 18, 2014 11:45:58 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.3.9.
Sep 18, 2014 11:45:58 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Sep 18, 2014 11:45:59 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
Sep 18, 2014 11:45:59 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Sep 18, 2014 11:45:59 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8443"]
Sep 18, 2014 11:45:59 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Sep 18, 2014 11:45:59 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 518 ms
Sep 18, 2014 11:45:59 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 18, 2014 11:45:59 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
Sep 18, 2014 11:45:59 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/apache-tomcat-7.0.53/webapps/websocket.war
Sep 18, 2014 11:45:59 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.53/webapps/docs
Sep 18, 2014 11:45:59 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.53/webapps/examples
Sep 18, 2014 11:46:00 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.53/webapps/ROOT
Sep 18, 2014 11:46:00 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.53/webapps/host-manager
Sep 18, 2014 11:46:00 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.53/webapps/manager
Sep 18, 2014 11:46:00 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Sep 18, 2014 11:46:00 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8443"]
Sep 18, 2014 11:46:00 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Sep 18, 2014 11:46:00 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1097 ms

最佳答案

就在我按下发布问题之前,我找到了答案,我输入的地址是 localhost:8443,而它需要是 https://localhost:8443/

关于Tomcat 7.0.53 SSL 连接未连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25920301/

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