From: Craig Ringer <ringerc@ringerc.id.au>
To: Walter Hurry <walterhurry@lavabit.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC with SSL
Date: Wed, 07 Dec 2011 13:06:13 +0800
Message-ID: <4EDEF445.10006@ringerc.id.au> (raw)
In-Reply-To: <jblr8s$inm$1@dough.gmane.org>
References: <jbg7qf$9mn$1@dough.gmane.org>
<CAF-4BpMJrya0ioXz4vn61bp2BG0X8YR6VkJ00do02n=gM=G2FA@mail.gmail.com>
<jbgma6$a91$1@dough.gmane.org>
<4EDC1031.2010607@ringerc.id.au>
<jbj3ii$9ab$1@dough.gmane.org>
<4EDD65BC.4010605@ringerc.id.au>
<jblr8s$inm$1@dough.gmane.org>
On 07/12/11 03:43, Walter Hurry wrote:
> On Tue, 06 Dec 2011 08:45:48 +0800, Craig Ringer wrote:
>
>> On 12/06/2011 02:46 AM, Walter Hurry wrote:
>>> ------------------------------------------------------------- $ java
>>> -Djavax.net.ssl.keyStore=$HOME/.postgresql/clientstore \
>>> -Djavax.net.ssl.keyStorePassword=changeit \
>>> -Djavax.net.ssl.keyStoreType="jks" \
>>>
>> I thought you could only use a JECKS store when including private keys?
> Sorry, I'm pretty new to all this. What is a JECKS store? Does it mean I
> have the keyStoreType wrong?
JKS and JECKS are two different key store formats. Keytool understands
both. If my memory serves, JECKS is the encrypted keystore format,
intended for storing private key data. I think you can use JECKS for
both certificate and key data, but you can use JKS only for certificate
data, NOT for key data.
If you want your trusted certs and your client certs+keys in the same
store, use a JECKS store by passing the "-storetype JECKS" argument to
keytool when creating the store and importing a cert into it. I have the
niggling memory that if you use the JKS store (default) then keytool
imports the certificate from your input pkcs#2 (or whatever) file and
ignores the key.
--
Craig Ringer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ringerc@ringerc.id.au, walterhurry@lavabit.com
Subject: Re: JDBC with SSL
In-Reply-To: <4EDEF445.10006@ringerc.id.au>
References: <jbg7qf$9mn$1@dough.gmane.org> <CAF-4BpMJrya0ioXz4vn61bp2BG0X8YR6VkJ00do02n=gM=G2FA@mail.gmail.com> <jbgma6$a91$1@dough.gmane.org> <4EDC1031.2010607@ringerc.id.au> <jbj3ii$9ab$1@dough.gmane.org> <4EDD65BC.4010605@ringerc.id.au> <jblr8s$inm$1@dough.gmane.org> <4EDEF445.10006@ringerc.id.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox