Howto start using https instead of http

Im using vaadin, tomcat, hibernate, touchkit and my startcode looks like this:


@Theme(“touchkit”)
@SuppressWarnings(“serial”)
public class VaadinUI extends UI {

@WebServlet(urlPatterns = {"/app/*", "/VAADIN/*"}, asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = VaadinUI.class, widgetset = "ch.xyz.app.ui.AppWidgetSet")
public static class Servlet extends TouchKitServlet {
}

@Override
protected void init(VaadinRequest request) {

Now how can I start use https? Just set a parameter?
(If I try with https I get SSL connection error).

Thanks!

Hi,

SSL/HTTPS is the responsibility of the server, not the application. So please look up Tomcat documentation on the matter. If I remember correctly you have to enable the HTTPS connector in server.xml or some other configuration file. You might also need to create a certificate and configure the server to use it.

-tepi

Thanks for your help, found this:

http://www.mkyong.com/tomcat/how-to-configure-tomcat-to-support-ssl-or-https/