jboss ssl
2011-04-26 17:59
155 查看
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"
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"
相关文章推荐
- ActiveMQ SSL应用之六 Tomcat、Jboss部署项目使用SSL连接ActiveMQ
- jboss-as-web-7.0.1.Final 配置 SSL
- JBoss 配置SSL (版本 4.2.1)
- jboss-as-web-7.0.1.Final和jbosseap4-3 配置 SSL
- JBoss Enable SSL
- Apache与JBOSS的整合,并支持SSL,整理
- 配置jboss4.2.3GA启用SSL
- 配置JBoss 4.0.5 的SSL
- Jboss的SSL的配置
- jboss4.2.3 SSL配置 + 生成数字签名
- Enabling SSL on JBoss
- apache+jboss+mod_jk+ssl+php+gd+postgre+sendmail配置
- Jboss的SSL的配置【转】
- EJB3 over SSL in JBOSS
- MyEclipse+JBoss配置
- LINUX 出现ERROR OPENSSLSSL.H NO SUCH FILE OR DIRECTORY的解决方法
- WebLogic如何配置SSL
- JBOSS 服务器的缓存清理
- MySQL互为主从模型实现基于SSL复制
- Ubuntu下为Apache配置ssl