<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4609374317608862194</id><updated>2024-10-24T09:27:43.411-07:00</updated><category term="Ubuntu 10.04"/><category term="Faraday"/><category term="Lucid Lynx"/><category term="OAuth2"/><category term="Rails 2.3"/><category term="Rails 3"/><category term="Ruby 1.9.2"/><category term="VMware"/><category term="nginx passenger rails"/><title type='text'>rabblerabblerails</title><subtitle type='html'>fun fun fun independent rails development.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4609374317608862194.post-1116547148376819593</id><published>2013-09-07T20:55:00.004-07:00</published><updated>2013-09-07T21:54:19.805-07:00</updated><title type='text'>Learning The MEAN.js stack.</title><content type='html'>The next few weeks I am going to step out of my comfort zone and mess around and learn &lt;a href=&quot;http://nodejs.org/&quot;&gt;Node.js&lt;/a&gt; and MongoDB.&lt;br /&gt;
I am going to use:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Express&amp;nbsp;&lt;a href=&quot;http://expressjs.com/&quot;&gt;http://expressjs.com/&lt;/a&gt;&amp;nbsp;- Get some proper organization instead of JS everywhere&lt;/li&gt;
&lt;li&gt;Jade&amp;nbsp;&lt;a href=&quot;http://jade-lang.com/&quot;&gt;http://jade-lang.com/&lt;/a&gt;&amp;nbsp;- Template until my face melts off&lt;/li&gt;
&lt;li&gt;Sass&amp;nbsp;&lt;a href=&quot;http://sass-lang.com/&quot;&gt;http://sass-lang.com/&lt;/a&gt;&amp;nbsp;- Know Sass from Rails, so why not.&lt;/li&gt;
&lt;li&gt;Mongodb&amp;nbsp;&lt;a href=&quot;http://www.mongodb.org/&quot;&gt;http://www.mongodb.org/&lt;/a&gt;&amp;nbsp;- aligns well with JS, good way to get into noSQL&lt;/li&gt;
&lt;li&gt;Mongoose&amp;nbsp;&lt;a href=&quot;http://mongoosejs.com/&quot;&gt;http://mongoosejs.com/&lt;/a&gt;&amp;nbsp;- abstract away some lower level things&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
I am going to start here and see what happens.&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and&quot;&gt;http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/L6i4v-nPteg?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
A primer by Tyler Neylon of AppGrok.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/1116547148376819593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rabblerabblerails.blogspot.com/2013/09/learning-meanjs-stack.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/1116547148376819593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/1116547148376819593'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/2013/09/learning-meanjs-stack.html' title='Learning The MEAN.js stack.'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4609374317608862194.post-4374764596539735122</id><published>2011-01-25T05:11:00.000-08:00</published><updated>2011-02-05T00:42:20.543-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="nginx passenger rails"/><title type='text'>Setting up a Maintenance page with Passenger, nginx and Rails</title><content type='html'>As simple as it sounds, a&amp;nbsp;maintenance&amp;nbsp;page is something we cannot do without if we want to provide a quality user experience. Googling around has led me to find some solutions, but they violated some of the nginx best practices, particularly the &lt;b&gt;&lt;u&gt;if&lt;/u&gt;&lt;/b&gt; directive.&amp;nbsp;Many&amp;nbsp;&lt;a href=&quot;http://wiki.nginx.org/IfIsEvil&quot;&gt;bad things and unexpected behaviors&lt;/a&gt;&amp;nbsp;can happen with using in the nginx config.&lt;br /&gt;
&lt;br /&gt;
After some researching and experimentation, I discovered an simple and elegant solution for posting a maintenance page for nginx and Passenger without using ifs and rewrites in the nginx.conf file.&lt;br /&gt;
&lt;br /&gt;
Use something like this in nginx.conf, in the server block:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
try_files&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;$uri&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;/maintenance.html @passenger;&lt;/span&gt;&lt;br /&gt;
&lt;code&gt; passenger_enabled on;&lt;br /&gt;
root /data/&lt;br /&gt;
location @passenger {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;# lolwut? we need this for try_files&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;passenger_enabled on;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;root /data/&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Simply symlink maintenance.html when you need to go offline, and remove it to go back to normal operation.</content><link rel='replies' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/4374764596539735122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rabblerabblerails.blogspot.com/2011/01/setting-up-maintenance-page-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/4374764596539735122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/4374764596539735122'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/2011/01/setting-up-maintenance-page-with.html' title='Setting up a Maintenance page with Passenger, nginx and Rails'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4609374317608862194.post-2625432661191117531</id><published>2010-07-24T00:25:00.000-07:00</published><updated>2010-09-03T13:29:40.277-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails 3"/><category scheme="http://www.blogger.com/atom/ns#" term="Ruby 1.9.2"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 10.04"/><title type='text'>Setting up Rails 3 and Ruby-1.9.2-RC2 with RVM on Ubuntu 10.04 Lucid Lynx</title><content type='html'>Update: Ruby 1.9.2 and Rails 3 have been released, use this instead for Rails 3 and Ruby 1.9.2&lt;br /&gt;
&lt;pre&gt;#Rails 3
rvm gem install rails
#ruby 1.9.2
sudo rvm --default ruby-1.9.2
&lt;/pre&gt;&lt;br /&gt;
With Rails 3 in Beta 4 and the RC coming soon, I wanted to get up to speed with what&#39;s new in Rails. Using a VM was the best option, as I didn&#39;t want to even try building Ruby again on Windows, with Ruby 1.9.2 being the best option for Rails 3.&lt;br /&gt;
&lt;br /&gt;
Continuing from the VMware install in the last post, we will now install Rails 3.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;# dependencies for ruby, rails 3 and rvm install script
sudo apt-get install curl bison build-essential autoconf zlib1g-dev libssl-dev
libxml2-dev libreadline6-dev git-core subversion libsqlite3-dev
&lt;/pre&gt;&lt;br /&gt;
Next, install rvm:&amp;nbsp;&lt;a href=&quot;http://rvm.beginrescueend.com/rvm/install/&quot;&gt;http://rvm.beginrescueend.com/rvm/install/&lt;/a&gt;&lt;br /&gt;
This is the system-wide install I will be using:&amp;nbsp;&lt;a href=&quot;http://rvm.beginrescueend.com/deployment/system-wide/&quot;&gt;http://rvm.beginrescueend.com/deployment/system-wide/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;# run the preconfigured script
sudo bash &amp;lt; &amp;lt;( curl -L http://bit.ly/rvm-install-system-wide )

# Wait for that to build.

# Add to profile to load the rvm path
echo &quot;source &#39;/usr/local/lib/rvm&#39;&quot; &amp;gt;&amp;gt; .bashrc

# Install Ruby
# `rvm list known` for other versions of ruby. ruby-1.9.2-head gave me a compile error.
sudo rvm install ruby-1.9.2-rc2

# Configure default ruby version
sudo rvm --default ruby-1.9.2-rc2

# test ruby install
ruby -v

# Install Rails 3
sudo rvm gem install rails --pre
sudo rvm gem install bundler
sudo rvm gem install sqlite3-ruby

# generate your app
rails appname
cd appname
# run the server!
rails server
&lt;/pre&gt;&lt;br /&gt;
Awesome!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhabMQjv-_I9kYchdhHSdFXL9t6XI8mQ-nVNlqcEk7bezeKKIA8j2vuJQ_sVzb9Q6eb4GOOHPcIqxLy5yzR6vKG3SIdwjylziy_NphhwhjJMd9jYKfiLHp_cccQGH5ETQYuGivCB6nQaMc/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;409&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhabMQjv-_I9kYchdhHSdFXL9t6XI8mQ-nVNlqcEk7bezeKKIA8j2vuJQ_sVzb9Q6eb4GOOHPcIqxLy5yzR6vKG3SIdwjylziy_NphhwhjJMd9jYKfiLHp_cccQGH5ETQYuGivCB6nQaMc/s640/Capture.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;If you want to run mongrel with ruby 1.9.2, install the prerelease of mongrel. However mongrel_rails seems broke, at the time of this writing.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;sudo rvm gem install mongrel --pre&lt;/pre&gt;Unicorn is pretty neat too. It is super fast! &lt;br /&gt;
&lt;pre&gt;sudo rvm gem install unicorn
# in rails root
unicorn_rails
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/2625432661191117531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/setting-up-rails-3-and-ruby-192-rc2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/2625432661191117531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/2625432661191117531'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/setting-up-rails-3-and-ruby-192-rc2.html' title='Setting up Rails 3 and Ruby-1.9.2-RC2 with RVM on Ubuntu 10.04 Lucid Lynx'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhabMQjv-_I9kYchdhHSdFXL9t6XI8mQ-nVNlqcEk7bezeKKIA8j2vuJQ_sVzb9Q6eb4GOOHPcIqxLy5yzR6vKG3SIdwjylziy_NphhwhjJMd9jYKfiLHp_cccQGH5ETQYuGivCB6nQaMc/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4609374317608862194.post-1281347338136762961</id><published>2010-07-23T23:57:00.000-07:00</published><updated>2010-08-24T14:35:54.337-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lucid Lynx"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 10.04"/><category scheme="http://www.blogger.com/atom/ns#" term="VMware"/><title type='text'>Installing Ubuntu 10.04 Lucid Lynx on VMware</title><content type='html'>UPDATE 8/24/10:&lt;br /&gt;
If you want to map your VM to an external IP or a domain name, you may need to use VMware Workstation or something with the VMware NAT feature instead of VMware player. On Windows 7/Vista, you might have to disable your firewall for the VMware NAT to work.&lt;br /&gt;
&lt;br /&gt;
Working on a Windows environment can be tricky sometimes with ruby and rails. Expecially if you want to try Rails 3, which recommends using Ruby 1.9.2. So my alternative was to run a VMware instance of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
First off, download the disk image.&lt;br /&gt;
&lt;a href=&quot;http://www.ubuntu.com/desktop/get-ubuntu/download&quot;&gt;http://www.ubuntu.com/desktop/get-ubuntu/download&lt;/a&gt;&lt;br /&gt;
The 32-bit version should suffice.&lt;br /&gt;
&lt;br /&gt;
When you are done installing Ubuntu on the VM, you may notice the keyboard does not work.&lt;br /&gt;
This is because the keyboard settings with the VMware&amp;nbsp;aren&#39;t&amp;nbsp;properly configured.&lt;br /&gt;
&lt;br /&gt;
Turn on the on-screen keyboard in the Universal Access Preferences pane.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0dc70yiEvaMZdKgvTfzhCo-L0AmwbEeQIjMVi-GoMBr-R6litGoIHctZfSn-bnfLkn8EeTp2Gn_SukvmH8RqJgE4RARxTQVY0eZklJjxAzYkDsrbvjZU8FBNwgeXtk-pxlH3ehKPJ1Ys/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0dc70yiEvaMZdKgvTfzhCo-L0AmwbEeQIjMVi-GoMBr-R6litGoIHctZfSn-bnfLkn8EeTp2Gn_SukvmH8RqJgE4RARxTQVY0eZklJjxAzYkDsrbvjZU8FBNwgeXtk-pxlH3ehKPJ1Ys/s640/Capture.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Reboot the VM and login with the onscreen keyboard. (For me, the on screen keyboard did not appear after the settings change)&lt;br /&gt;
&lt;br /&gt;
A posting on the VMware forums has the fix after you can login:&lt;br /&gt;
&lt;a href=&quot;http://communities.vmware.com/message/1515622#1515622&quot;&gt;http://communities.vmware.com/message/1515622#151562&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/console-setup&lt;br /&gt;
&lt;pre&gt;vi /etc/default/console-setup
&lt;/pre&gt;&lt;br /&gt;
And replace:&lt;br /&gt;
&lt;pre&gt;XKBMODEL=&quot;SKIP&quot;
XKBLAYOUT=&quot;us&quot;
XKBVARIANT=&quot;U.S. English&quot;
XKBOPTIONS=&quot;&quot;
&lt;/pre&gt;&lt;br /&gt;
with:&lt;br /&gt;
&lt;pre&gt;XKBMODEL=&quot;pc105&quot;
XKBLAYOUT=&quot;us&quot;
XKBVARIANT=&quot;&quot;
XKBOPTIONS=&quot;&quot;
&lt;/pre&gt;&lt;br /&gt;
And that should be it!</content><link rel='replies' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/1281347338136762961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/installing-ubuntu-1004-lucid-lynx-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/1281347338136762961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/1281347338136762961'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/installing-ubuntu-1004-lucid-lynx-on.html' title='Installing Ubuntu 10.04 Lucid Lynx on VMware'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0dc70yiEvaMZdKgvTfzhCo-L0AmwbEeQIjMVi-GoMBr-R6litGoIHctZfSn-bnfLkn8EeTp2Gn_SukvmH8RqJgE4RARxTQVY0eZklJjxAzYkDsrbvjZU8FBNwgeXtk-pxlH3ehKPJ1Ys/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4609374317608862194.post-3125227560804072504</id><published>2010-07-07T22:45:00.000-07:00</published><updated>2010-07-23T23:57:08.832-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Faraday"/><category scheme="http://www.blogger.com/atom/ns#" term="OAuth2"/><category scheme="http://www.blogger.com/atom/ns#" term="Rails 2.3"/><title type='text'>Configuring OAuth2 gem with SSL Peer Certificates</title><content type='html'>OAuth2 recently has been gaining traction with major social networking sites, such as Twitter and Facebook. The OAuth2 gem makes it easy to access OAuth2 services, such as Facebook.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;However if we want to build a user authentication alternative for our own webservices through OAuth, it is important to verify the authenticity of the OAuth provider. We will use HTTPS/SSL since Facebook provides that.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Michael Bleigh has posted this helpful example for Rails 2.3:&lt;a href=&quot;http://wiki.github.com/intridea/oauth2/rails-23-webserver-example&quot;&gt;http://wiki.github.com/intridea/oauth2/rails-23-webserver-example&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://wiki.github.com/intridea/oauth2/rails-23-webserver-example&quot;&gt;&lt;/a&gt;Using the example alone will give you this warning:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;pre&gt;warning: peer certificate won&#39;t be verified in this SSL session&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;This is fine if you are only polling data, but I needed to verify the provider. After some looking around the OAuth gem and Faraday, I found the site parameter, if given a hash, is treated as the options hash.&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Download the certificate authority file from: &lt;a href=&quot;http://curl.haxx.se/ca/cacert.pem&quot;&gt;http://curl.haxx.se/ca/cacert.pem&lt;/a&gt; and place it somewhere appropriate.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://wiki.github.com/intridea/oauth2/rails-23-webserver-example&quot;&gt;&lt;/a&gt;Using the example modify the client method to:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre&gt;def client
ca_file = File.join(&#39;ca_file_path&#39;)
@client ||= OAuth2::Client.new(
&#39;appid&#39;, &#39;app_secret&#39;,
{
# Faraday treats the site param if it is a hash as the options hash
:site =&gt; {
:url=&gt;&#39;https://graph.facebook.com&#39;,
:ssl=&gt;{
:verify=&gt;OpenSSL::SSL::VERIFY_PEER,
:ca_file =&gt;ca_file
}
},
# doesnt have to be NetHttp
:adapter =&gt; :NetHttp}
)
end&lt;/pre&gt;And that should work!</content><link rel='replies' type='application/atom+xml' href='http://rabblerabblerails.blogspot.com/feeds/3125227560804072504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/configuring-oauth2-gem-with-ssl-peer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/3125227560804072504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4609374317608862194/posts/default/3125227560804072504'/><link rel='alternate' type='text/html' href='http://rabblerabblerails.blogspot.com/2010/07/configuring-oauth2-gem-with-ssl-peer.html' title='Configuring OAuth2 gem with SSL Peer Certificates'/><author><name>Chris</name><uri>http://www.blogger.com/profile/08384015798392628799</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>