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 D8E15D1B17B for ; Wed, 21 Jul 2004 17:54:07 -0300 (ADT) 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 52169-01 for ; Wed, 21 Jul 2004 20:54:05 +0000 (GMT) Received: from bifrost.admc.com (170-215-158-222.bras01.cha.wv.frontiernet.net [170.215.158.222]) by svr1.postgresql.org (Postfix) with ESMTP id 363BFD1B174 for ; Wed, 21 Jul 2004 17:54:02 -0300 (ADT) Received: from 170-215-158-222.bras01.cha.wv.frontiernet.net ([170.215.158.222] helo=admc.com) by bifrost.admc.com with asmtp (TLSv1:AES256-SHA:256) (Exim 4.30) id 1BnO67-0001Ub-S4 for pgsql-jdbc@postgresql.org; Wed, 21 Jul 2004 16:53:55 -0400 Message-ID: <40FED7EA.6030106@admc.com> Date: Wed, 21 Jul 2004 16:54:02 -0400 From: Blaine Simpson User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: SSL URL References: <1090441973.27063.17.camel@pm0> In-Reply-To: X-Enigmail-Version: 0.83.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/252 X-Sequence-Number: 10636 I don't have time to test it myself with pg, but in general you can append any parameters to the connection URL. I don't know how universal it is, but you can even pass username and password in the connection URL instead of with separate settings. It basically goes URL + ; + name=val.... like jdbc:hsqldb:hsql://localhost/enrollments;ifexists=true Hopefully CF will let you specify the connection URL itself any way you want, since it is up to the DB vendor what URL formats they support. Kris Jurka wrote: >On Wed, 21 Jul 2004, Phil Moors wrote: > > > >>pg 7.4.2-1 >>pg74.214.jdbc3.jar >> >>I'd like to use this jdbc driver with ColdFusion. However, CF seems to >>have hard coded their jdbc driver configuration to only accept some >>standard parameters. I can't find a way to pass SSLMODE=require to the >>darn thing. The CF manual also says that the use of CONNECTSTRING is not >>enabled for the jdbc interface. Go figure. >> >> > >Surely there must be a way of specifying parameters to it. Could you >explain how you are currently establishing the connection? > > > >>Where would I tweak the source to set the jdbc driver to default to SSL? >> >> > >If this is the only way to do it, then in the 7.4 source tree see >org/postgresql/jdcb1/AbstractJdbc1Connection.java in the openConnection >method: > > if (info.getProperty("ssl") != null && Driver.sslEnabled()) > { > useSSL = true; > } > else > { > useSSL = false; > } > > >Kris Jurka > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > > -- ICF: 703-934-3692 Cell: 703-944-9317