JBOSS 7.1 and SSL
JBOSS 7.1 and SSL
JBOSS 7.1 and SSL
2. Prerequisite
JBOSS 7.1 EAP
TAFC / TAFJ
Java JDK 1.6 or JDK 1.7
BrowserWeb.war
Once the preceding command is executed, you will be asked for the password, for this article, let us give
the password as “megabyte”. Once you give the password, you will be asking for the details as specified
in the image below
Password: megabyte
Next we should verify the newly created key store file.
After executing the above command, you will get the details as specified in the image below,
-----BEGIN CERTIFICATE-----
MIIDizCCAnOgAwIBAgIEERdjvjANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJVSzELMAk
GA1UE
CBMCTkMxDzANBgNVBAcTBkxvbmRvbjEeMBwGA1UEChMVYXNpYS50ZW1lbm9zZ3JvdXAuY
29tMRQw
EgYDVQQLEwtFbmdpbmVlcmluZzETMBEGA1UEAxMKMTAuOTIuNC44NDAeFw0xNTA4MjgwO
TMxNTRa
Fw0xNTExMjYwOTMxNTRaMHYxCzAJBgNVBAYTAlVLMQswCQYDVQQIEwJOQzEPMA0GA1
UEBxMGTG9u
ZG9uMR4wHAYDVQQKExVhc2lhLnRlbWVub3Nncm91cC5jb20xFDASBgNVBAsTC0VuZ2luZWV
yaW5n
MRMwEQYDVQQDEwoxMC45Mi40Ljg0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCA
QEAkbfs
rqMjZJBCRlIdKWePL8X7f2ISchzyMLOchlKztHVpAn5Rc2vXvzp742iGjAHRBMJCw7qxnaN3FZ0e
Ox+Qv4VWr0MEndCiAHYPqCPKOeruXweunpBAI1t+UP4HQm3h7KKg6wPHGLwWnw6Vj4a96eU
VSOGc
GEFuhsIEelpxC6p0y6KdKgquBQVAC+SVUlcOgRYSs/tKfOpn59MBrT/H5TNewzzvDbUP3KooBBP/
O88p23PMtgs5NfHU9f9cJPdQigcU3OLhUqAOvwO5q3GMfo4FDOciiAggV1eDISK3UG8hrxxLOB2k
7vSAv8PPq22QNMxzou8pcfRCh7WJjU3nHwIDAQABoyEwHzAdBgNVHQ4EFgQU3Eev5XwQ1kLX
E57A
4T3I6yz+1xIwDQYJKoZIhvcNAQELBQADggEBABCaks5G4bN5iZY3V5WxVqZOHD04+EfZFvqfit+
b
PUEGk9BinjKZtGNnPMBCKcpoQQ0z4S+8YdOfOynhFl1YZ86Oty1pW6DPcRZ6/5OT1ZArK2nLesW
c
AiWcmwbRd8L23WhRLAa/yTW+oQ/rsnWQuu1krovYr9m9FbGmvnboBv3K1Alu0w/
HIQVw3D+2kcX1
PegprKbq0EQCfneAI5RkYN+A/
Y+PU8GlFLaGtbfFfLdNSZCMJ5S+rg+CNI5M9NwmS4JNwxhN2hSw
nb4tNlfe2CzMlMPbYjeeLbHUgbqHDm5E+jxdHTh/R3RzmIzA2a+senrjX182wouz0XLUZVDNEsI=
-----END CERTIFICATE-----
The preceding self-signed certificate should be stored in a file named “sslSelfSC.cer” and then execute
the following command,
After executing the above command, you will be asked for the password, Give the same password
“megabyte” and you will get the details as specified in the image below,
In step5, verify the newly created trust store file by executing the following command,
After executing the preceding command, you will get the details as specified in the image below,
Which can be copied and pasted for the desire folder
Step1:
open standalone.xml
Now under management option create custom security-realm with any name you want I have
given "SslRelam as shown below:
<security-realm name="SslRealm">
<server-identities>
<ssl>
<keystore path="C:\server.p12" keystore-password="megabyte"/>
</ssl>
</server-identities>
</security-realm>
STEP2:
Under profile option expand undertow subsystem there are two main parts which are server and Servlet
container configuration
Add https-listener under server under the tag <server name="default-server"> for SslRealm created in
step1:
TAFJ : standalone-Slot01.xml
5. Start Jboss
5.Click Browse,Select the check box “show physical stores” in browse wizard
6.Select Trusted Root Certification authorities (this will internal import the truststore in system make
sure the name given while creating truststore is localhost)
Restart jboss and jbase_agent open the link in new browser session
URL: https://localhost:8443/BrowserWeb/servlet/BrowserServlet
------------------------------------------------------------------------------------------------------------------------------------------