pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: PEM to PKCS12
Date: Wed, 24 Feb 2021 17:09:09 -0700
Message-ID: <dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com> (raw)
In-Reply-To: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com>
References: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com>

I continue to forget the PKCS is a store, not a cert. Using the cert 
therein and the world is happy.

The proposal is withdrawn.
On 2/24/21 4:20 PM, Rob Sargent wrote:
> Given PEM from AWS/RDS, which appear to me to include only the
> certificate, here's what I did to get to PKCS12 format
> 
>     keytool -import -alias rds-root -keystore root.jks -file rds.pem
>     keytool -importkeystore -srckeystore root.jks -destkeystore root.p12
>     -deststoretype pkcs12
> 
> Is this expected in general (not RDS specific)? If so I would like to
> add these instrux to connect.md.
> 
> Or is this even correct? Handing the created .p12 file to the connection 
> url
> (sslkey=/full/path/root.p12&sslpassword=x&sslmode=verify-full)
> does not seem to be taking effect. I get could not find 
> "/home/ec2-user/.postgresql/root.crt"
> which is NOT the full/real path
> 
> 
> 
> 






view thread (2+ messages)

Message-ID: <dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com>
Permalink:  ../dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com/
Also on:    postgresql.org/message-id/dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com

 · 

reply

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: robjsargent@gmail.com
  Subject: Re: PEM to PKCS12
  In-Reply-To: <dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com>
  References: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com> <dd94504c-cf43-3f0d-08c9-b8e11f10c05d@gmail.com>

* 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