Configuration to enable SSL for Tomcat

 0 How do I enable SSL https in Tomcat server running on Windows Platform so that Securonix Application runs only on port 8443? And the application can be accessed by the url https://localhost:8443? asked 29 May '13, 14:48 Sruthin 76●2●4●9 accept rate: 25%

 0 SSL can be enabled in Tomcat running on Windows by the following procedure : 1. Run the command on the command prompt : keytool -genkey -keyalg RSA -alias localhost -keystore keystore.jks -validity 999 -keysize 2048 You will receive a set of questions starting with a prompt for a password. Enter keystore password: Re-enter new password: . . . Fill out the details as required and preserve a copy of the questions and their answers for future reference. This will create a file keystore.jks in the folder where the above command was executed. 1. In the Tomcat/conf/server.xml file make the changes as mentioned below : Please remember to turn off Tomcat when the changes are being made. Comment out the line : Uncomment the lines :  and append lines in the Connector tag
maxHttpHeaderSize="8192" keystoreFile="path\to\keystore.jks" keystorePass="password entered earlier on configuring the certificate"  Add the following lines in the Tomcat/webapps/ROOT/index.jsp before the beginning of the html tag. <% String redirectURL = "/Profiler"; response.sendRedirect(redirectURL); %> Restart Tomcat and access Securonix application using url :" https://localhost:8443 answered 29 May '13, 16:20 Sruthin 76●2●4●9 accept rate: 25%
 1 For more details refer this: http://www.tomcatexpert.com/knowledge-base/using-openssl-configure-ssl-certificates-tomcat answered 30 May '13, 10:26 Praful ♦♦ 126●4●9●25 accept rate: 5%
 0 to set up port forwarding from 8080 to 8443 add the following line to web.xml and also make uncomment the lines in server.xml lines to add in web.xml :: Everything in https /* CONFIDENTIAL answered 16 Sep '13, 22:35 mnair 71●1●4●10 accept rate: 9%
 toggle preview community wiki

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Tags:

×10
×3
×3
×1
×1