3 Replies Latest reply on Apr 30, 2012 11:41 AM by bhatt.krunal-JavaNet

    Configuring SSL in Glassfish

      Hi All,

      I am configuring SSL in glassfish v3 server on Linux Platform
      I followed following steps to configure SSL in glassfish :

      1. keytool -keysize 2048 -genkey -alias wwww.domain.com -keyalg RSA -dname "CN=wwww.domain.com,O=company,L=city,S=State,C=Countery" -keypass changeit -
      storepass changeit -keystore server.keystore
      2. keytool -certreq -alias www.domain.com -keystore server.keystore -storepass changeit -keypass changeit -file server-2048.csr
      3. keytool -import -alias root -keystore keystore.jks -trustcacerts -file valicert_class2_root.crt
      4. keytool -import -alias cross -keystore keystore.jks -trustcacerts -file gd_cross_intermediate.crt
      5. keytool -import -alias intermed -keystore keystore.jks -trustcacerts -file gd_intermediate.crt
      6. keytool -import -alias www.domain.com -keystore keystore.jks -trustcacerts -file your domain.crt
      7. Make sure that the domain is stopped using asadmin stop-domain domain_name
      8. create a backup of the domain.xml
      9. Open domain.xml in a text editor like gedit, kate or wordpad and replace all occurrence of s1as with www.domain.com which is the certificate alias.

      After completing 9th steps my glassfish server is not start in SSL(https).

      Can any one know, what could be the reason for that?
      Can any one help me to get out of this?
      Is there any configuration in glassfish admin console..?

      Viren Patel