httpsConnector.setAttribute("keystoreFile", projectBase + "keystore");
httpsConnector.setAttribute("clientAuth", "false");
httpsConnector.setAttribute("sslProtocol", "TLS");
httpsConnector.setAttribute("SSLEnabled", true);
Service service = tomcat.getService();
service.addConnector(httpsConnector);
// add servlet
Context ctx = tomcat.addContext("/", projectBase + "src/main/webapp");
ContextConfig contextConfig = new ContextConfig();
ctx.addLifecycleListener(contextConfig);