This content has been marked as final.
Show 3 replies
-
1. Re: How to configure JBoss AS to use SSL (https)
jaikiran Apr 1, 2008 12:04 PM (in response to pete007)See this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125636
-
2. Re: How to configure JBoss AS to use SSL (https)
jaikiran Apr 1, 2008 12:06 PM (in response to pete007)"pete007" wrote:
ps: not that important, but interesting: if I have a domain, where do I get a trusted key for it?
Certificate Authorities http://en.wikipedia.org/wiki/Certificate_authority. -
3. Re: How to configure JBoss AS to use SSL (https)
pete007 Apr 2, 2008 7:42 PM (in response to pete007)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