How to Configure SSL in Tomcat server(Enabling https)
No comments:Today i am going to explain you how to configure SSL in tomcat windows OS.
These are the steps you have to follow.
1.Press Windows Button + R and type cmd command prompt will open.
2.copy java root path(cd C:\Program Files\Java\jdk1.8.0_25\bin).
3.then type keytool -genkeypair -alias MyCertificate -keyalg RSA -keystore "C:\Users\SRI HARISH\MyCertificate.cert"
4.Enter keystore password : harish (enter your password).
5.Re-enter keystore password : harish (enter your password).
6.what is your first and last name : harishkumar reddy(enter your first and last name).
7.what is the name of your organizational unit : IT(enter your organizational unit).
8.what is the name of your city and locality : bangalore(enter your city and locality).
9.what is the name of your state and province : karnataka(enter your state and province).
10.what is the name of two-letter country code for this unit : 91(for india 91 enter your state and province).
11.and verity and enter YES.
12.enter key password for <MyCertificate>(RETURN if same as keystore password):harish(enter your password).
13.Re-enter key new password :harish(enter your password).
14.after that if you see java root directory(C:\Program Files\Java\jdk1.8.0_25\bin) it is coreated sussceefully without any error.
15.open the file generated location(C:\Users\SRI HARISH) and you will see MyCertificate.cert file.
16.open server.xml(located in tomcat : C:\tomcat8\conf\server.xml),search for port="8443" you would see the code was commented below like this.
17.enabel the comment and add the keystoreFile(keystoreFile="C:\Users\SRI HARISH\MyCert.cert") location and password(keystorePass="harish") below like this.
18.save the file and restart the server and java (if startrd)
19.start the java and tomcat server
20.open the browser and type the url like this (https://localhost:8443/) you will see below waring (
There is a problem with this website’s security certificate.)
21.click on (There is a problem with this website’s security certificate.)
22.you will see running tomcat with https protocal.
if you have any problem please comment below.
Like and Follow Us on facebook
These are the steps you have to follow.
1.Press Windows Button + R and type cmd command prompt will open.
5.Re-enter keystore password : harish (enter your password).
6.what is your first and last name : harishkumar reddy(enter your first and last name).
7.what is the name of your organizational unit : IT(enter your organizational unit).
8.what is the name of your city and locality : bangalore(enter your city and locality).
9.what is the name of your state and province : karnataka(enter your state and province).
10.what is the name of two-letter country code for this unit : 91(for india 91 enter your state and province).
11.and verity and enter YES.
13.Re-enter key new password :harish(enter your password).
14.after that if you see java root directory(C:\Program Files\Java\jdk1.8.0_25\bin) it is coreated sussceefully without any error.
16.open server.xml(located in tomcat : C:\tomcat8\conf\server.xml),search for port="8443" you would see the code was commented below like this.
17.enabel the comment and add the keystoreFile(keystoreFile="C:\Users\SRI HARISH\MyCert.cert") location and password(keystorePass="harish") below like this.
18.save the file and restart the server and java (if startrd)
19.start the java and tomcat server
20.open the browser and type the url like this (https://localhost:8443/) you will see below waring (
There is a problem with this website’s security certificate.)
22.you will see running tomcat with https protocal.
if you have any problem please comment below.
Like and Follow Us on facebook