Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I do to make my Java web application to use HTTPS?

By default, the Java web apps that I develop runs on http.

Suppose, if I want my web app to run on https, is there something specific that I should do as a developer? Or it it totally a network-guy task and un-related to developer?

Basically I want to know the steps to host a Java web application on https.

like image 910
Veera Avatar asked Dec 06 '10 07:12

Veera


2 Answers

You don't need any programmatic changes in your web-application, You need to configure SSL with your web/app server

  • Glassfish SSL Conf
  • Tomcat SSL Conf
  • Jetty SSL Conf
  • JBoss SSL Conf
like image 74
jmj Avatar answered Oct 12 '22 22:10

jmj


It depends on what J2EE(Web Container) you are using,

But there should be no developer changes required.

For tomcat you can click here.

like image 32
Koekiebox Avatar answered Oct 12 '22 22:10

Koekiebox