无法在端口8443上进行SSL https连接 [英] Trouble with SSL https connection on port 8443

查看:201
本文介绍了无法在端口8443上进行SSL https连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Tomcat 7上运行的应用程序的https(端口8443)连接遇到问题.该应用程序现在在http(端口80)上运行良好.我已取消注释server.xml文件中的定义SSL ..."部分,并设置了所有属性值(请参见下文).但是,当我尝试通过浏览器运行该应用程序时,出现错误远程设备或资源将不接受连接".

We are having trouble with the https (port 8443) connection on an app that runs on Tomcat 7. The app is running fine on http (port 80) now. I have uncommented the "Define a SSL ..." section in the server.xml file and set all the property values (see below). However, when I try to run the app through a browser, I get the error, "The remote device or resource won't accept the connection."

此外,当我在服务器上运行端口实用程序以查看哪些端口已打开并正在侦听时,它会显示Tomcat的端口80,而端口443也在侦听. Java版本1.6,Tomcat 7版本.

Also, when I run a port utility on the server to see what ports are open and listening, it displays port 80 for Tomcat, and port 443 is also listening. Java version 1.6, Tomcat 7 versions.

任何想法都将不胜感激,因为我已经为此奋斗了数周.

Any ideas would be greatly appreciated as I've been banging my head on this one for weeks.

<connector port="443" maxhttpheadersize="8192" maxthreads="150" minsparethreads="25" 
            maxsparethreads="75" enablelookups="false" disableuploadtimeout="true" acceptcount="100" 
            scheme="https" secure="true" sslprotocol="TLS" clientauth="false" 
            keystorefile="K:/tomcat1.keystore" keystorepass="password"

我用来生成密钥库文件的

命令

command i used to generate keystore file

keytool -genkey -alias tomcat -keyalg RSA -keystore K:/tomcat1.keystore

密码:密码

我可以在cmd提示符中看到-在启动tomcat服务器时成功启动了OpenSSL.

I could see in cmd prompt- OpenSSL succeessfully initiated while starting tomcat server.

帮帮我

推荐答案

最后它开始工作了……安装了服务器的新副本,如下修改了server.xml,

Atlast it started working... Installed new copy of server, modified server.xml as below,

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" 
           redirectPort="8443"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
           port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />
-->
<!-- 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" 
           keystoreFile="k:/tomcat.keystore" keystorePass="*****" 
           maxThreads="25" port="8443" 
           protocol="org.apache.coyote.http11.Http11NioProtocol" 
           scheme="https" secure="true" sslProtocol="TLS"/>

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>

在下面的命令中用于生成密钥库文件

Used below command to generate keystore file

keytool -genkey -alias tomcat -keyalg RSA -keystore k:/tomcat.keystore

这篇关于无法在端口8443上进行SSL https连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆