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: PEM to PKCS12
Date: Wed, 24 Feb 2021 16:20:18 -0700
Message-ID: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com> (raw)

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)  latest in thread

Message-ID: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com>
Permalink:  ../f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com/
Also on:    postgresql.org/message-id/f692eab1-388c-c707-42ae-17d7f0055dd6@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: <f692eab1-388c-c707-42ae-17d7f0055dd6@gmail.com>
  References: <f692eab1-388c-c707-42ae-17d7f0055dd6@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