Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 8A9049ED581 for ; Wed, 7 Dec 2011 12:34:30 -0400 (AST) Received: from lo.gmane.org ([80.91.229.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RYKRx-0000A6-0r for pgsql-jdbc@postgresql.org; Wed, 07 Dec 2011 16:34:30 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RYKRk-0000pZ-Je for pgsql-jdbc@postgresql.org; Wed, 07 Dec 2011 17:34:16 +0100 Received: from cpc10-with5-2-0-cust74.1-4.cable.virginmedia.com ([86.26.85.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Dec 2011 17:34:16 +0100 Received: from bruno by cpc10-with5-2-0-cust74.1-4.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Dec 2011 17:34:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Bruno Harbulot Subject: Re: JDBC with SSL Date: Wed, 07 Dec 2011 16:34:02 +0000 Lines: 18 Message-ID: <4EDF957A.1040704@distributedmatter.net> References: <4EDC1031.2010607@ringerc.id.au> <4EDD65BC.4010605@ringerc.id.au> <4EDEF445.10006@ringerc.id.au> <4EDF9403.9060400@distributedmatter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org Cc: Walter Hurry , Craig Ringer X-Gmane-NNTP-Posting-Host: cpc10-with5-2-0-cust74.1-4.cable.virginmedia.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <4EDF9403.9060400@distributedmatter.net> X-Pg-Spam-Score: -5.4 (-----) X-Archive-Number: 201112/38 X-Sequence-Number: 22492 On 07/12/2011 16:27, Bruno Harbulot wrote: > > You can then use it with KeyStore type "PKCS12" (no #) from Java directly. > You could also convert this PKCS#12 file into a JKS/JECKS keystore using > keytool and its -importstore options (only in Java 6+). > Sorry, I meant -importkeystore: keytool -importkeystore -srckeystore usercreds.p12 \ -srsstoretype PKCS12 \ -destkeystore usercreds.jceks \ -deststoretype JCEKS Best wishes, Bruno.