JavaFx Webview JDK 8 can not load self signed certificate

In your solution with TrustManager, you need to add additional statements after installing the all-trusting trust manager.

I found the full solution here:

http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/

I tested it on JDK-9.0.1 and it works.

// Create all-trusting host name verifier
HostnameVerifier allHostsValid = new HostnameVerifier() {
    public boolean verify(String hostname, SSLSession session) {
        return true;
    }
};

// Install the all-trusting host verifier
HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); 

Ran into the same problem as you. Guess it is because JDK 8 uses TLS1.2 as default (https://blogs.oracle.com/java-platform-group/entry/java_8_will_use_tls). Forcing the client to use TLS 1 solved this problem for me.

Try using -Djdk.tls.client.protocols="TLSv1".