Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

HTTPS

 
Ramesh Ponnada
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

how to make web application secure using HTTPS, is that aspect related with the servlet programming or Any configuration changes need to be done at the web container. if so please explain the configuration process in JBOSS and Tomcat.

Thanks
Ramesh Ponnada
 
Meg Adal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are the steps I followed:

I wanted to use URL https://www.XYZ.com for the website.

1.C:\WINNT\system32\drivers\etc\hosts

Change the entry from 127.0.0.1 localhost
to 127.0.0.1 XYZ.com


2.In Jboss-3.2.5\server\default\deploy\jbossweb-tomcat50.sar\server.xml
Added entry
<Connector port="8443" address="XYZ.com"
maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
scheme="https" secure="true" clientAuth="false"
keystoreFile="${jboss.server.home.dir}/conf/testKey.keystore"
keystorePass="abc123" sslProtocol = "TLS" />

3. Created keystore (here named testKey.keystore with pwd =abc123)and copy it in Jboss-3.2.5\server\default\conf folder

Then accessed the application with URL https://www.XYZ.com

4. Check out this link in regards to creation of keystore
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CreateKeystore

I hope that helps.
 
norman richards
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book explains how to do this, as does the JBoss documentation. Those instructions are a bit abbreviated (and old) but it does illustrate the process.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic