Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 227CF633579 for ; Fri, 16 Apr 2010 12:15:25 -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 87619-02-5 for ; Fri, 16 Apr 2010 15:15:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id 7C1EE632952 for ; Fri, 16 Apr 2010 12:15:14 -0300 (ADT) Received: by wwb24 with SMTP id 24so1228602wwb.19 for ; Fri, 16 Apr 2010 08:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LaPTxYgjZgqJql9idivmKxdVzeU9LvqFik9vZdMrtT8=; b=l2ub0jmzyahsTZaYemCtgcnX8N0SQMYiM7jvKUslY8sFxf22vd5miunBekv/h7m7kS Yf3aldJxSVyoNl/8bmcRNfzAkJHq1ztqjT4MqI7uSBbqjs0XwU1/Psl/jqiN/G2177vx GHE524HG9gxXydRxE0sF/CGcS5U4qse4xUco8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VMzuaXit+DO7gbCRH+IFk9yEKa/BLALAoBhPmTh9jBnIIsjat+Rm2qZzn358CdRJzD ps2ocBYz18aGyDxHNp0GpWkeFyKh7zlbfzLrWS+8nqujkeoC4KgcHf0btokp/v6FWM/h +MY9N8++RiHSLRzQxY0jmr0Icy1YEryVFfsKQ= MIME-Version: 1.0 Received: by 10.216.168.135 with HTTP; Fri, 16 Apr 2010 08:15:13 -0700 (PDT) In-Reply-To: <24692.1271367015@sss.pgh.pa.us> References: <201004150206.o3F26U427784@momjian.us> <20100415074542.137300@gmx.net> <24692.1271367015@sss.pgh.pa.us> Date: Fri, 16 Apr 2010 12:15:13 -0300 Received: by 10.216.88.15 with SMTP id z15mr1994168wee.92.1271430913310; Fri, 16 Apr 2010 08:15:13 -0700 (PDT) Message-ID: Subject: Re: PostgreSQL with SSL From: Jose Berardo To: Tom Lane , =?ISO-8859-1?Q?Martin_M=FCnstermann?= , Bruce Momjian , pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201004/215 X-Sequence-Number: 34309 Hello, On Thu, Apr 15, 2010 at 6:30 PM, Tom Lane wrote: > Jose Berardo writes: >>>> - Is it possible to store the server.key in a ciphered =A0file with > >>> No. > >> I believe that it may be a good idea, it may bring another security leve= l, > > 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 t= o >> 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. =A0In any case, > providing the server with the key to decrypt the ssl key is not going > to be convenient in operation. =A0You're not going to want to store that > key on disk are you? =A0Do you want somebody around to manually provide > it every time the server restarts? =A0That gets old pretty fast, when > all it's buying you is a largely-imaginary security gain. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0regards, tom lane > Thanks Tom. Your few words were a very elucidative explanation. I thought that attacking the running server process was much more difficult than just open a file, and the needs of someone to provide the symmetric key which will open the private key was just a question of trade-off (security vs availability). --=20 Regards, Jose Berardo Especializa Treinamentos www.especializa.com.br +55 81 3465.0032