<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LI Tech Blog &#187; Programming</title>
	<atom:link href="http://techblog.lucidillusion.org/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.lucidillusion.org</link>
	<description>Tech Notes and Problem Solutions</description>
	<lastBuildDate>Mon, 02 Jan 2012 03:54:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SSL Connections in Ruby with ruby-postgres</title>
		<link>http://techblog.lucidillusion.org/2007/11/15/ssl-connections-in-ruby-with-ruby-postgres/</link>
		<comments>http://techblog.lucidillusion.org/2007/11/15/ssl-connections-in-ruby-with-ruby-postgres/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 11:40:29 +0000</pubDate>
		<dc:creator>jgraham</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[libpg]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[sslmode]]></category>

		<guid isPermaLink="false">http://techblog.lucidillusion.org/2007/11/15/ssl-connections-in-ruby-with-ruby-postgres/</guid>
		<description><![CDATA[Not much here, just a quick note about getting SSL connections to PostgreSQL in Ruby. According to the ruby-postgres documentation arbitrary libpg options can be passed to the PGconn.open() call. Calling PGconn.open like this: conn = PGconn.open( 'host' =&#62; 'host.domain.com', 'options' =&#62; 'sslmode=require' ) results in PGError: FATAL: invalid command-line arguments for server process. After [...]]]></description>
			<content:encoded><![CDATA[<p>Not much here, just a quick note about getting SSL connections to PostgreSQL in Ruby.  According to the <a href="http://ruby.scripting.ca/postgres/">ruby-postgres</a> documentation arbitrary <a href="http://www.postgresql.org/docs/8.2/interactive/libpq-connect.html">libpg options</a> can be passed to the PGconn.open() call.  Calling PGconn.open like this:</p>
<pre>conn = PGconn.open( 'host'    =&gt; 'host.domain.com',
                    'options' =&gt; 'sslmode=require' )</pre>
<p>results in <tt>PGError: FATAL:  invalid command-line arguments for server process</tt>.  After digging at some forums and the ruby-postgres source code I found that one needs to prepend the options string with <tt>-o</tt>, so a working example is:</p>
<pre>conn = PGconn.open( 'host'    =&gt; 'host.domain.com',
                    'options' =&gt; '-o sslmode=require' )</pre>
]]></content:encoded>
			<wfw:commentRss>http://techblog.lucidillusion.org/2007/11/15/ssl-connections-in-ruby-with-ruby-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.636 seconds -->

