Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D5F7163333A for ; Mon, 12 Apr 2010 13:35:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44377-01 for ; Mon, 12 Apr 2010 16:35:07 +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 B017063579B for ; Mon, 12 Apr 2010 13:35:08 -0300 (ADT) Received: by wwi17 with SMTP id 17so2289875wwi.19 for ; Mon, 12 Apr 2010 09:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:received:message-id:subject:from:to :content-type; bh=GsZU4iMrENMsPSVM1j3lxMko5TL/pppdtCDyeIinhXY=; b=Cv/242fRFJsUPYKUnaqGh8S0VIkxXERUkssBo2diIP+yFU9hCEszjliPcarqdjwi8/ 3+O78d9nAhcJWOw88Ppj8wOcxq1PPn0LyBEjzakzUc5NK6AnMFaAJmdq5l8sHqCbcKME mhoAjrcyEB8dO0nxMr739STqKFpRQyJY5131E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=f7TBy9p+IlkSGj9n3yumSm3TBfBFTkhFqrDUq9IEQ8i3aeomtBpCNFPUe4QfSyI9+Z T2WWWCx/YW3lpB7cJQfZ7EpwMtzLg0qKIbowOA/z+8TLlIse1g5P6Y/WCf8AbZcGbwGW QKB3P1TN0jIjk/HJrjBdJ9cy+PKwSFs5ERAtc= MIME-Version: 1.0 Received: by 10.216.168.135 with HTTP; Mon, 12 Apr 2010 09:35:07 -0700 (PDT) Date: Mon, 12 Apr 2010 13:35:07 -0300 X-Google-Sender-Auth: 025a6d6fa1d6180b Received: by 10.216.162.212 with SMTP id y62mr2512453wek.109.1271090107554; Mon, 12 Apr 2010 09:35:07 -0700 (PDT) Message-ID: Subject: PostgreSQL with SSL From: Jose Berardo To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=0016e6550dc2569b9404840cba34 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, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/143 X-Sequence-Number: 34237 --0016e6550dc2569b9404840cba34 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm new on using SSL in PostgreSQL. I've created a self-signed certificate using openssl and started the server with ssl suport. But I have some question, can you help me? - There is any parameter to configure the path (and name) to certificate (server.crt) and private key (server.key) like hba_file or ident_file in postgresql.conf or any other? - Is it possible to store the server.key in a ciphered file with triple-des and configure the PostgreSQL to use a simetric-key to open it when it's necessary? Maybe I'm wrong but my server only works with I plain private key. I'm trying to use the java keytool in place of openssl. - I believe that it not possible to start the PostgreSQL server without openssl (and ssl-dev package in debian), is it correct? - When I create keys and certificates with keytool, it creates a java keystore to store everything. I know how to export the certificate but I don't know how to export the private key and when I use the keytool certificate, the server crashes with this message: FATAL: could not load server certificate file "server.crt": no start line Sorry about too many questions, but anyone can help me to understand more about ssl in PostgreSQL? -- Regards, Jose Berardo --0016e6550dc2569b9404840cba34 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I'm new on using SSL in PostgreSQL.

I've created = a self-signed certificate using openssl and started the server with ssl sup= ort.

But I have some question, can you help me?

- There is an= y parameter to configure the path (and name) to certificate (server.crt) an= d private key (server.key) like hba_file or ident_file in postgresql.conf o= r any other?

- Is it possible to store the server.key in a ciphered=A0 file with tri= ple-des and configure the PostgreSQL to use a simetric-key to open it when = it's necessary?
Maybe I'm wrong but my server only works with I = plain private key.

I'm trying to use the java keytool in place of openssl.
- I beli= eve that it not possible to start the PostgreSQL server without openssl (an= d ssl-dev package in debian), is it correct?

- When I create keys an= d certificates with keytool, it creates a java keystore to store everything= . I know how to export the certificate but I don't know how to export t= he private key and when I use the keytool certificate, the server crashes w= ith this message:

=A0FATAL:=A0 could not load server certificate file "server.crt&qu= ot;: no start line

Sorry about too many questions, but anyone can he= lp me to understand more about ssl in PostgreSQL?


= --
Regards,

Jose Berardo

--0016e6550dc2569b9404840cba34--