X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4B2773A6376 for ; Sat, 11 Dec 2004 17:37:33 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91684-01 for ; Sat, 11 Dec 2004 17:37:28 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id 82B723A6369 for ; Sat, 11 Dec 2004 17:37:27 +0000 (GMT) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id iBBHbGV01614; Sat, 11 Dec 2004 09:37:17 -0800 Message-ID: <41BB304C.30009@hogranch.com> Date: Sat, 11 Dec 2004 09:37:16 -0800 From: John R Pierce User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew M Cc: pgsql-jdbc@postgresql.org, Kris Jurka Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException References: <73F89B04-47E1-11D9-870C-0003938366A4@jibeya.com> <200412071137.04871@vadim.nasardinov> <200412080837.57840@vadim.nasardinov> <8205B1BB-497B-11D9-870C-0003938366A4@jibeya.com> <41BAABA2.9070100@hogranch.com> <431C280A-4B5E-11D9-A341-0003938366A4@jibeya.com> In-Reply-To: <431C280A-4B5E-11D9-A341-0003938366A4@jibeya.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/90 X-Sequence-Number: 11756 > The only problem with this is, how do you copy an openssl {key|crt} pair > into a keytool keystore? Importing the crt into a keystore is not a > problem as long as the crt is in x509 format, but the key poses a > problem as the x509 format only handles trusted certificates. When I created SSL certs for a internal webserver, I created my own root certificate with the openssl tools, installed that in the server and client trusted stores as a trusted RA, then used that root certificate to generate all my other keys, which were then treated as trusted. To get new browser clients to trust this RA cert, I had it available on a link off my home page, the user simply had to click on the link, they'd get a certificate trust message, and they click 'always trust', and the browser adds the cert to the root authority list. I would have to assume something similar can be done with java, and in fact, am about to figure it out at work, since we need to do some SSL between a standalone java application and a tomcat server.