{"id":263,"date":"2012-06-15T16:39:02","date_gmt":"2012-06-15T08:39:02","guid":{"rendered":"http:\/\/rmohan.com\/?p=263"},"modified":"2012-06-15T16:39:09","modified_gmt":"2012-06-15T08:39:09","slug":"ssl-on-jboss","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=263","title":{"rendered":"SSL ON JBOSS"},"content":{"rendered":"<p><strong>SSL ON JBOSS  <\/strong><\/p>\n<p><strong>SSL Setup is same as Tomcat Procedure <\/strong><\/p>\n<p>1) Create a keystore using keytool utility<\/p>\n<p>#keytool can be found from Java runtime &#8211; \/opt\/jre1.6.0_18\/bin\/keytool<br \/>\n# Enter values as required<\/p>\n<p>mkdir $JBOSS_HOME\/ssl<br \/>\ncd $JBOSS_HOME\/ssl<\/p>\n<p>$ keytool -genkey -alias jboss -keyalg RSA -keystore jboss.keystore -validity 3650<br \/>\nEnter keystore password:<br \/>\nRe-enter new password:<br \/>\nWhat is your first and last name?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your organizational unit?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your organization?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your City or Locality?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your State or Province?<br \/>\n[Unknown]:<br \/>\nWhat is the two-letter country code for this unit?<br \/>\n[Unknown]: US<br \/>\nIs valuescorrect?<br \/>\n[no]: yes<\/p>\n<p>Enter key password for<br \/>\n(RETURN if same as keystore password):<br \/>\nRe-enter new password:<\/p>\n<p>A .keystore file will be created in the current directory. <\/p>\n<p>2) Update \/opt\/jboss-eap-5.0\/jboss-as\/server\/default\/deploy\/jbossweb.sar\/server.xml with correct keystore values.<\/p>\n<p><Connector protocol=\"HTTP\/1.1\" SSLEnabled=\"true\"\n\nport=\"8443\" address=\"${jboss.bind.address}\"\nscheme=\"https\" secure=\"true\" clientAuth=\"false\"\nkeystoreFile=\"${jboss.server.home.dir}\/conf\/jboss.keystore\"\nkeystorePass=\"{your-password}\" sslProtocol = \"TLS\" \/><\/p>\n<p>3) Restart the server. Test using https:\/\/{ip_address}:8443\/context-root\/filename.jsp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSL ON JBOSS <\/p>\n<p>SSL Setup is same as Tomcat Procedure <\/p>\n<p>1) Create a keystore using keytool utility<\/p>\n<p>#keytool can be found from Java runtime &#8211; \/opt\/jre1.6.0_18\/bin\/keytool # Enter values as required<\/p>\n<p>mkdir $JBOSS_HOME\/ssl cd $JBOSS_HOME\/ssl<\/p>\n<p>$ keytool -genkey -alias jboss -keyalg RSA -keystore jboss.keystore -validity 3650 Enter keystore password: Re-enter new password: What [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/263"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/265"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}