Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YD9LW-0008A9-EX for pgsql-jdbc@arkaria.postgresql.org; Mon, 19 Jan 2015 10:14:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YD9LV-0007xW-Ck for pgsql-jdbc@arkaria.postgresql.org; Mon, 19 Jan 2015 10:14:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YD9LU-0007xQ-Lp for pgsql-jdbc@postgresql.org; Mon, 19 Jan 2015 10:14:08 +0000 Received: from mail-qa0-f44.google.com ([209.85.216.44]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YD9LR-0004dZ-6X for pgsql-jdbc@postgresql.org; Mon, 19 Jan 2015 10:14:06 +0000 Received: by mail-qa0-f44.google.com with SMTP id w8so23196227qac.3 for ; Mon, 19 Jan 2015 02:14:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=1jVPtjei8/pIvv6E5QjRZV3etNbZm1c/3TtJA1Lswqs=; b=WIMNfRKy1u9TBCi77EOZF7VKG+Av2RbGC+8UhE4ZDC8cgq2JPYTWZE+Ip8DtJ4LhDr bzU+CFD5bWHubEVuL/X5b1YUKcxOfBN4oV4yn5Qh3YF20X9mdowq3FY7DPjbPofRTGOE 07994ItgIpJ9P1jgL55hkN8N3zJiHUiLPrvtMXLQHozN2pFREAHKKm44i2fAa+bc/8SL YfTfLHX0otItpOMdSZnpsGjDOeNBL/PEz4FNwyKW/tRaO3LQhAq1vRppMLR/ydFal/go 8ZNZ+IgAH2doB5/HKu1DHCZ3W16g+kvKVn9F5QkLX7RlqSB+UAGMx3uueHdYhP3a0HVQ IOuA== X-Gm-Message-State: ALoCoQmEAwoLuaELU335oiOlNeWTUWkZSWo9ey3vhyVnr6qZnNkcr8F7t/yMpw1AQsgZBhbmK4IY MIME-Version: 1.0 X-Received: by 10.140.96.33 with SMTP id j30mr15487950qge.92.1421662444033; Mon, 19 Jan 2015 02:14:04 -0800 (PST) Received: by 10.140.38.71 with HTTP; Mon, 19 Jan 2015 02:14:03 -0800 (PST) Date: Mon, 19 Jan 2015 04:14:03 -0600 Message-ID: Subject: Docs java 1.7 and 1.8 From: Scott Morgan To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001a113a9764f7adc7050cfe94ad X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --001a113a9764f7adc7050cfe94ad Content-Type: text/plain; charset=UTF-8 This page should probably be changed to stay current with jdk 1.7, 1.8. https://jdbc.postgresql.org/documentation/head/ssl-client.html keytool -keystore $JAVA_HOME/*jre*/lib/security/cacerts -alias postgresql -import -file server.crt.der instead of; keytool -keystore $JAVA_HOME/lib/security/cacerts -alias postgresql -import -file server.crt.der java -Djavax.net.ssl.trustStore=*$JAVA_HOME/jre/lib/security/cacerts* -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp instead of; java -Djavax.net.ssl.trustStore=mystore -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp Cheers, Scott --001a113a9764f7adc7050cfe94ad Content-Type: text/html; charset=UTF-8

This page should probably be changed to stay current with jdk 1.7, 1.8.

https://jdbc.postgresql.org/documentation/head/ssl-client.html

keytool -keystore $JAVA_HOME/jre/lib/security/cacerts -alias postgresql -import -file server.crt.der

instead of;

keytool -keystore $JAVA_HOME/lib/security/cacerts -alias postgresql -import -file server.crt.der


java -Djavax.net.ssl.trustStore=$JAVA_HOME/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp

instead of;

java -Djavax.net.ssl.trustStore=mystore -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp


Cheers,

Scott

--001a113a9764f7adc7050cfe94ad--