In This tutorial, We will try to Generate a CSR and Install it into JBoss Webserver.
Here is the simple steps how to do this:
Login as Administrator via remote desktop connection
Click Start > Run > cmd
We need to set path to JAVA_HOME, you can just copy paste into the command box.
c:\>set path=%path%;%JAVA_HOME%\bin\
Create jboss-ssl directory
c:\>mkdir jboss-ssl
Change directory to jboss-ssl
Generate Key.Store with Keytool & Generate CSR
</strong>c:\jboss-ssl>keytool -genkey -alias tomcat -keyalg RSA -keystore test.keystore
p.s : all those information will save in test.keystore
Next we need to Generate CSR from test.keystore.
p.s: CSR info will save in this file test.csr
Next ....We nee to PURCHASE SSL from Geocert,Verisign,Digicert,etc. They will help us to Generate CERTIFICATE.
After we have your brandnew CERTIFICATE. we need to import the CERTIFICATE AUTHORITY to the keystore. We can download CAcert.cer from Certificate Authority website or we also can found the CAcert.cer included in the email that we just purchased the new cert.
Save the file and name it CAcert.cer (CERTIFICATE AUTHORITY)
Next, We need to import the brandnew certificate that we just purchase and name it test.cer
If there is no error message. we good to go.
Next is copy a test.keystore to jboss conf directory
c:\jboss-ssl>copy test.keystore c:\jboss-4.0.0\conf\
Last step is to modify JBoss Webserver server.xml to also listen on port 443.
c:\jboss-ssl>edit c:\jboss-4.0.0\server\default\deploy\jbossweb-tomcat50.sar\server.xml
Modify the server.xml like the sample below :
Save and exit.
Restart JBoss server.
Click Start > Administrative tools > Services > JBoss Application Server
Right click on JBoss Application Server and Click Restart.
Test it out with IE/Mozilla.
https://test.wowtutorial.org
If there is no Certificate Authority Unknown error. It's mean we've successfully installed SSL on JBoss Application Server.
Post new comment