Howto start using https instead of http

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

public class VaadinUI extends UI {

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

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).



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.


Thanks for your help, found this: