Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CE17163219C for ; Thu, 15 Apr 2010 18:30:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49904-03 for ; Thu, 15 Apr 2010 21:30:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 25571632BA9 for ; Thu, 15 Apr 2010 18:30:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o3FLUFDt024693; Thu, 15 Apr 2010 17:30:15 -0400 (EDT) To: Jose Berardo cc: =?ISO-8859-1?Q?Martin_M=FCnstermann?= , Bruce Momjian , pgsql-admin@postgresql.org Subject: Re: PostgreSQL with SSL In-reply-to: References: <201004150206.o3F26U427784@momjian.us> <20100415074542.137300@gmx.net> Comments: In-reply-to Jose Berardo message dated "Thu, 15 Apr 2010 18:22:10 -0300" Date: Thu, 15 Apr 2010 17:30:15 -0400 Message-ID: <24692.1271367015@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/201 X-Sequence-Number: 34295 Jose Berardo writes: >>> - Is it possible to store the server.key in a ciphered file with >> No. > I believe that it may be a good idea, it may bring another security level, Not really. > Just saving the private key file inside the cluster with no privilegies for > other users (the server suggests 0600 mask for it) is still sufficient to > protected the key? If someone can access that file, they can also attach to the running server process and pull the decrypted key out of it. In any case, providing the server with the key to decrypt the ssl key is not going to be convenient in operation. You're not going to want to store that key on disk are you? Do you want somebody around to manually provide it every time the server restarts? That gets old pretty fast, when all it's buying you is a largely-imaginary security gain. regards, tom lane