jboss ssl

本文详细介绍了如何在JBoss服务器上配置SSL。包括创建密钥库、生成证书、配置server.xml文件以及启动带有SSL的JBoss服务器的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Create a folder "ssl" in JBOSS Server "Path D:/jboss-eap-5.0/jboss-as/server/default"

 

 

 

2. Exceute Commands in folder “ssl” in below.  Please rename {key alias} and {cert alias} to name your like without space (e.g. kaming-key).  When prompt you about Yes / No, please type “yes”.  And please keep your password for updating to XML

 

·         keytool -genkey -alias {key alias} -keyalg RSA -keystore server.keystore

 

·         keytool -export -alias {key alias} -file server.crt -keystore server.keystore

 

·         keytool -import -alias {cert alias} -file server.crt -keystore server.keystore

 

 

 

3. Edit XML "server.xml" in JBOSS Server "Path D:/jboss-eap-5.0/jboss-as/server/default/deploy/jbossweb.sar".  Un-remark SSL section like below.  And update the original statement highlighted in BLUE color.  The password is the string that you type in previous step.

 

 

 

      <!-- SSL/TLS Connector configuration using the admin devl guide keystore -->

 

      <Connector protocol="HTTP/1.1" SSLEnabled="true"

 

       port="8443" address="${jboss.bind.address}"

 

       scheme="https" secure="true" clientAuth="false"

 

       keystoreFile="${jboss.server.home.dir}/ssl/server.keystore"

 

       keystorePass="password" sslProtocol = "TLS" />

 

 

 

4. Start JBOSS Server command with SSL

 

run.bat -c default -b 0.0.0.0 -Djavax.net.ssl.trustStore="D:/jboss-eap-5.0/jboss-as/server/default/ssl/server.keystore"

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值