【发布时间】:2012-03-23 20:06:14
【问题描述】:
我的 Jboss SSL 连接有问题。当我尝试使用浏览器更改客户端的 Windows 主机文件 (192.168.80.115 zimbrax.com) 连接到 JBOSS 时,我无法访问。我收到“无法连接”错误。但是当我尝试使用 127.0.0.1 zimbrax.com 连接 服务器 时,我可以访问。
我的客户端和 jboss 服务器之间没有防火墙或其他工具。
以下是我的 SSL 配置。 (顺便说一下,http://没有同样的问题,只有https://)
server.xml:
<Connector protocol="HTTP/1.1" SSLEnabled="true"
port="443" address="${jboss.bind.address}"
scheme="https" secure="true" clientAuth="false"
keystoreFile="D:\jboss-5.1.0.GA\server\zimbrax\conf\zimbrax.com.jks"
keystorePass="6v4xse32a096be4x" useBodyEncodingForURI="true" sslProtocol = "TLS" />
绑定-jboss-beans.xml
<!-- For services like those listed above that need to know the
port of the HTTPS connector -->
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.web:service=WebServer</property>
<property name="bindingName">HttpsConnector</property>
<property name="port">443</property>
<property name="description">JBoss Web HTTPS connector socket</property>
</bean>
<xsl:variable name="portHttps" select="443"/>
<xsl:when test="(name() = 'port' and . = '443')">
<xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute>
</xsl:when>
这是我的 jboss 启动:
d: cd D:\JBoss-5.1.0.GA\bin run.bat -b 0.0.0.0 -c zimbrax -Djavax.net.ssl.keyStore="D:/jboss-5.1.0.GA/server/zimbrax/conf/zimbrax.com.jks"
我应该在哪里检查?
你能帮帮我吗?
【问题讨论】: