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 DF7A83A6708 for ; Fri, 10 Dec 2004 19:07:55 +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 01173-02 for ; Fri, 10 Dec 2004 19:07:16 +0000 (GMT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by svr1.postgresql.org (Postfix) with ESMTP id 6A6373A680B for ; Fri, 10 Dec 2004 18:27:15 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr4.postgresql.org (Postfix) with ESMTP id 12E795AF706 for ; Tue, 7 Dec 2004 16:30:58 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iB7GSuwF024384; Tue, 7 Dec 2004 11:28:56 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iB7GStr31937; Tue, 7 Dec 2004 11:28:55 -0500 Received: from 192.168.1.2 (vpn83-136.boston.redhat.com [172.16.83.136]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id iB7GSoZU005908; Tue, 7 Dec 2004 11:28:51 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: Andrew M , pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException Date: Tue, 7 Dec 2004 11:37:04 -0500 User-Agent: KMail/1.5.4 References: <73F89B04-47E1-11D9-870C-0003938366A4@jibeya.com> <84BE6EF8-4836-11D9-870C-0003938366A4@jibeya.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412071137.04871@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/73 X-Sequence-Number: 11739 On Tuesday 07 December 2004 07:38, Andrew M wrote: > I need to explain my setup here. I'm running a website via Jboss > application server. ... > I launch jboss like so: > > >cd /jboss/bin > /jboss/bin> ./run.sh > > So how do I tell the driver where to find the keystore in this > instance, as I am not running a stand alone java application? JBoss's run.sh likely provides a way to pass command-line options to the JRE. This is needed so can you specify the maximum heap and stack size, among other things. The standard way of doing this is to allow the user to set an enviroment variable called JAVA_OPTS or some such. So, once you know what this variable is named in your particular case, you should be able to do something along the following lines: $ cd /jboss/bin $ export JAVA_OPTS="-Djavax.net.ssl.trustStore=/library/java/home/lib/security/cacert" $ ./run.sh The script is then responsible for splicing this additional option onto the command line that it uses to invoke java. See http://www.google.com/search?q=jboss+run.sh+JAVA_OPTS&btnI=