From: Stéphane KANSCHINE <stephane@hexack.fr>
To: Anjul Tyagi <anjul@ibosstech-us.com>
To: pgsql-admin@postgresql.org
Subject: Re: Encryption / Decryption via PGCrypto
Date: Wed, 24 Oct 2018 11:00:24 +0200
Message-ID: <20181024090024.jyw2f4l2uygydh3y@office.hexack.fr> (raw)
In-Reply-To: <emd6be52d7-a1bc-4178-87c6-6da99c9ca005@iboss01081>
References: <emd6be52d7-a1bc-4178-87c6-6da99c9ca005@iboss01081>
Hi,
Le mer. 24 oct., vers 08:27, Anjul Tyagi exprimait :
>
> We are implementing the pgcrypto in our database to encrypt and decrypt the
> Column data. for testing purpose we have generate the PGP public / private
> key and use those when we read and write data.
>
> How can we secure the key, if we keep the key outside how can we use that
> into query.
We keep the private key on the app server. It communicates with postgres
through SSL and postgres logs aren't too verbose in order to avoid key
exposition.
If there's a better way, i'm curious of it.
Regards,
--
Stéphane KANSCHINE - https://www.hexack.fr./ - https://www.nuajik.io./
@ stephane@hexack.fr
+33 6 64 31 72 52
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-admin@postgresql.org
Cc: stephane@hexack.fr, anjul@ibosstech-us.com
Subject: Re: Encryption / Decryption via PGCrypto
In-Reply-To: <20181024090024.jyw2f4l2uygydh3y@office.hexack.fr>
References: <emd6be52d7-a1bc-4178-87c6-6da99c9ca005@iboss01081> <20181024090024.jyw2f4l2uygydh3y@office.hexack.fr>
* 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