package yiida.httpresponser.net;

import javax.net.ServerSocketFactory;
import javax.net.ssl.SSLServerSocketFactory;

public class HttpsServer extends HttpServer {
    static {
        System.setProperty("javax.net.ssl.keyStore",
                "/path/your_keystore");
        System.setProperty("javax.net.ssl.keyStoreType", "JKS");
        System.setProperty("javax.net.ssl.keyStorePassword", "password");
    }

    public HttpsServer() {}

    public HttpsServer(int connectionCount, int port) {
        super(connectionCount, port);
    }

    @Override
    protected ServerSocketFactory getServerSocketFactory() {
        return SSLServerSocketFactory.getDefault();
    }

}

@@ -159,24 +159,103 @@
 tpServer %7B%0D%0A
+    %0D%0A    /* comment in and modify values if you want to fix SSL environment.%0D%0A
     static %7B
@@ -495,24 +495,36 @@
 %22);%0D%0A    %7D%0D%0A
+    */%0D%0A    
 %0D%0A    public

comment out static system properties.