[jboss-user] [Security & JAAS/JBoss] - Re: How to configure JBoss AS to use SSL (https)
pete007
do-not-reply at jboss.com
Wed Apr 2 19:42:35 EDT 2008
Hello,
thank you for the links, now I understand it a little better.
The rest of my post was intended as a please-help-me-request, but I managed to solve the problem by myself. :))
So, interested readers can use it as a guideline for setting up SSL for a single Seam application on a JBoss Server. (Seam 2.0.0 and Jboss 4.2.0)
Thanks a lot and have fun, Pete
btw: the other non-https-application on the same server is still working.
---------------------------
Enabled SSL in the file "server.xml" in my deploy-directory by uncommenting the following entry:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150"
| scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" />
Added the following parameters to the above tag:
keystoreFile="${jboss.server.home.dir}/conf/myapp.keystore"
| keystorePass="topsecretpwd"
Enabled SSL in the desired seam application by editing pages.xml:
<page view-id="*" scheme="https"> ...
Created a key with the keytool with the following command:
keytool -keystore jboss-dir\server}default\conf\myapp.keystore -genkey -alias myalias -keypass mypassword
I was prompted for the keystore-password, where I used the one from the server.xml (topsecretpwd) and I can see the key, when I list all keys with:
keytool -keystore jboss-dir\server}default\conf\myapp.keystore -list
| myalias, 02.04.2008, keyEntry,
| Zertifikatsfingerabdruck (MD5): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:04:E4:F7:8A:6A:FE
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141136#4141136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141136
More information about the jboss-user
mailing list