HTTPS in Redhat EAP 6.0 or JBoss 7.0
Steps 1 : Create a
keystore by using Keytool if [HTTP /
HTTPS]
D:\drvijay>keytool -genkey -alias tomcat -keyalg RSA
-keystore https.keystore
Enter
keystore password:
Re-enter
new password:
What
is your first and last name?
[Unknown]:
abi gnax
What
is the name of your organizational unit?
[Unknown]:
jboss
What
is the name of your organization?
[Unknown]:
abignax
What
is the name of your City or Locality?
[Unknown]:
bangalore
What
is the name of your State or Province?
[Unknown]:
karnataka
What
is the two-letter country code for this unit?
[Unknown]:
IN
Is
CN=abi gnax, OU=jboss, O=abignax, L=bangalore, ST=karnataka, C=IN correct?
[no]:
yes
Enter
key password for
(RETURN if same as keystore password):
Step 2: Add the below line in x:/eap6.0_or_jboss7.0/standalone/configuration/standalone.xml
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" enable-lookups="false" secure="true">
<ssl password="test123" key-alias="tomcat" certificate-key-file="D:/drvijay/https.keystore" protocol="TLSv1" verify-client="false" certificate-file="D:/drvijay/https.keystore"/>
</connector>
<ssl password="test123" key-alias="tomcat" certificate-key-file="D:/drvijay/https.keystore" protocol="TLSv1" verify-client="false" certificate-file="D:/drvijay/https.keystore"/>
</connector>
Note : Give IP instead of localhost in some cases.
1 comment:
For SSL certs you should put in the fully qualified hostname for your first name and last name, eg.
> What is your first and last name?
jboss6server.mycompany.com
Then use the same fully qualified name in the browser url.
Post a Comment