Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXSO8-0003A0-Gh for pgsql-general@arkaria.postgresql.org; Mon, 25 Jun 2018 14:22:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fXSO6-0002oE-CG for pgsql-general@arkaria.postgresql.org; Mon, 25 Jun 2018 14:22:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXSO6-0002o7-1R for pgsql-general@lists.postgresql.org; Mon, 25 Jun 2018 14:22:38 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fXSO3-00011K-GS for pgsql-general@lists.postgresql.org; Mon, 25 Jun 2018 14:22:36 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fXSO1-0002By-86; Mon, 25 Jun 2018 10:22:33 -0400 Date: Mon, 25 Jun 2018 10:22:33 -0400 From: Bruce Momjian To: ROS Didier Cc: "pgsql-general@lists.postgresql.org" Subject: Re: PostgreSQL : encryption with pgcrypto Message-ID: <20180625142233.GD20745@momjian.us> References: <4bd1cec0f37c43999b6fba951cb4b0b3@PCYINTPEXMU001.NEOPROD.EDF.FR> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4bd1cec0f37c43999b6fba951cb4b0b3@PCYINTPEXMU001.NEOPROD.EDF.FR> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, May 17, 2018 at 07:07:00AM +0000, ROS Didier wrote: > Hi > > Regarding the encryption of data by pgcrypto, I would like to > know the recommendations for the management of the key. > > Is it possible to store it off the PostgreSQL server? > > Is there the equivalent of Oracle "wallet" ? Late reply, but the last presentation on this page shows how to use cryptographic hardware with Postgres: https://momjian.us/main/presentations/security.html You could modify that to use a key management system (KMS). -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +