pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PEM to PKCS12
2+ messages / 1 participants
[nested] [flat]

* PEM to PKCS12
@ 2021-02-24 23:20 Rob Sargent <robjsargent@gmail.com>
  2021-02-25 00:09 ` Re: PEM to PKCS12 Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Rob Sargent @ 2021-02-24 23:20 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PEM to PKCS12
  2021-02-24 23:20 PEM to PKCS12 Rob Sargent <robjsargent@gmail.com>
@ 2021-02-25 00:09 ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rob Sargent @ 2021-02-25 00:09 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org

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
> 
> 
> 
> 






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-02-25 00:09 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 23:20 PEM to PKCS12 Rob Sargent <robjsargent@gmail.com>
2021-02-25 00:09 ` Rob Sargent <robjsargent@gmail.com>

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