String url = "jdbc:postgresql://HOST:5432/TABLE?"+
"ssl=true&"+
"sslfactory=org.postgresql.ssl.NonValidatingFactory";
String user = "pgsql";
String password = "PWD";
Class dbDriver = Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection(url, user, password);