我尝试在 Jboss 4.2 上设置 .keystore。由于来自 jboss 社区的文档 http://community.jboss.org/wiki/sslsetup
但是 Jboss 控制台产生这个错误 LifecycleException: service.getName(): "jboss.web";协议(protocol)处理程序启动失败:
java.io.FileNotFoundException: C:\Documents and Settings\mebada\.keystore (The system cannot find the file specified)
即使我在 server.xml 中指定 keystore 的位置
<Connector className = "org.apache.coyote.tomcat4.CoyoteConnector"
address="${jboss.bind.address}" port = "8443" protocol="HTTP/1.1" SSLEnabled="true" scheme = "https"
secure = "true">
<Factory className = "org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
keystoreFile="D:/Projects/Demo/jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/conf/server.keystore"
keystorePass="tc-ssl"
protocol = "TLS"></Factory>
有什么帮助吗?
提前致谢
最佳答案
上面的标签无效。
我使用了这个标签:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150"
scheme="https" secure="false" strategy="ms" address="${jboss.bind.address}"
keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
keystorePass="tc-ssl" sslProtocol="TLS"
truststorePass="tc-ssl"
acceptAnyCert="true" clientAuth="want" />
关于ssl - 在 jboss 4.2 中配置 SSL 时出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2623215/