{"action":"created","issue":{"url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/528","repository_url":"https://api.github.com/repos/pgjdbc/pgjdbc","labels_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/528/comments","events_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/528/events","html_url":"https://github.com/pgjdbc/pgjdbc/issues/528","id":138427301,"number":528,"title":"SSL connection fails with 9.4.1208 but works with 9.4.1207","user":{"login":"laurenz","id":220612,"avatar_url":"https://avatars.githubusercontent.com/u/220612?v=3","gravatar_id":"","url":"https://api.github.com/users/laurenz","html_url":"https://github.com/laurenz","followers_url":"https://api.github.com/users/laurenz/followers","following_url":"https://api.github.com/users/laurenz/following{/other_user}","gists_url":"https://api.github.com/users/laurenz/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenz/subscriptions","organizations_url":"https://api.github.com/users/laurenz/orgs","repos_url":"https://api.github.com/users/laurenz/repos","events_url":"https://api.github.com/users/laurenz/events{/privacy}","received_events_url":"https://api.github.com/users/laurenz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-04T09:32:34Z","updated_at":"2016-03-07T10:43:52Z","closed_at":null,"body":"My code is as follows:\r\n\r\n    public class PGConn {\r\n        public static void main(String[] args) throws\r\n                ClassNotFoundException, java.sql.SQLException, java.io.IOException\r\n        {\r\n            Class.forName(\"org.postgresql.Driver\");\r\n            java.sql.Connection conn = java.sql.DriverManager.getConnection(\"jdbc:postgresql://<host>:<port>/<db>?user=<user>&password=<pwd>&ssl&sslfactory=org.postgresql.ssl.NonValidatingFactory\");\r\n            conn.close();\r\n        }\r\n    }\r\n\r\nThis program works with <tt>postgresql-9.4.1207.jre6.jar</tt>, but with <tt>postgresql-9.4.1208.jre6.jar</tt> I get:\r\n\r\n    Exception in thread \"main\" org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host \"123.123.123.123\", user \"<user>\", database \"<db>\", SSL off\r\n            at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:433)\r\n            at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:208)\r\n            at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)\r\n            at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:215)\r\n            at org.postgresql.Driver.makeConnection(Driver.java:406)\r\n            at org.postgresql.Driver.connect(Driver.java:274)\r\n            at java.sql.DriverManager.getConnection(DriverManager.java:571)\r\n            at java.sql.DriverManager.getConnection(DriverManager.java:233)\r\n            at PGConn.main(PGConn.java:4)\r\n\r\nI would have run <tt>git bisect</tt>, but I cannot get Maven to compile the source (I keep getting messages that there is no SNAPSHOT version).\r\n\r\nI looked at the history; could it be commit dc1844c21efbb4a840347d5aaa991384e8883b69?\r\n\r\nCan somebody shed more light on that?"},"comment":{"url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/comments/193200189","html_url":"https://github.com/pgjdbc/pgjdbc/issues/528#issuecomment-193200189","issue_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/528","id":193200189,"user":{"login":"laurenz","id":220612,"avatar_url":"https://avatars.githubusercontent.com/u/220612?v=3","gravatar_id":"","url":"https://api.github.com/users/laurenz","html_url":"https://github.com/laurenz","followers_url":"https://api.github.com/users/laurenz/followers","following_url":"https://api.github.com/users/laurenz/following{/other_user}","gists_url":"https://api.github.com/users/laurenz/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenz/subscriptions","organizations_url":"https://api.github.com/users/laurenz/orgs","repos_url":"https://api.github.com/users/laurenz/repos","events_url":"https://api.github.com/users/laurenz/events{/privacy}","received_events_url":"https://api.github.com/users/laurenz/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T10:43:51Z","updated_at":"2016-03-07T10:43:51Z","body":"I still cannot get pgjbc to build.\r\nI do not have JDK 1.8 installed.\r\n\r\nThe documentation does not tell me how to proceed, and nothing I tried seems to work."}}