# Mongrel and ssl

**URL:** <https://www.ruby-forum.com/t/mongrel-and-ssl/109090>\
**Category:** Rails\
**Created:** [July 11, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090 "2007-07-11T14:14:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [July 11, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090/1 "2007-07-11T14:14:18Z")

</div>

Hi,

I currently have an app running using Mongrel, and need to add SSL to  
certain functions. I found this link ([http://www.styledbits.com/](http://www.styledbits.com/)  
articles/2006/06/04/adding-ssl-to-your-rails-app-in-5-minutes) hunting  
through the archives, and was wondering if this is actually all that  
would be required (aside from getting a server certificate)?

Has anybody used this successfully, or have any other suggestions for  
how to accomplish it?

Thanks,

Simon

---

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [July 11, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090/2 "2007-07-11T18:44:22Z")

</div>

that link seems to be down so not sure what that is all about but here  
is the tutorial I used to originally setup the whole shebang, ssl and  
all:

[http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/](http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/)

assuming your running apache too…

Tim

---

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [July 11, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090/3 "2007-07-11T22:32:30Z")

</div>

For the nginx crowd:  
[http://rubyjudo.com/2006/11/2/nginx-ssl-rails](http://rubyjudo.com/2006/11/2/nginx-ssl-rails)

and

[http://brainspl.at/articles/2007/01/03/new-nginx-conf-with-optimizations](http://brainspl.at/articles/2007/01/03/new-nginx-conf-with-optimizations)

Cheers,  
Walter

---

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [July 11, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090/4 "2007-07-11T22:43:32Z")

</div>

You should also note that the ssl\_requirement plugin from 37signals  
wraps up  
the code in that styelbits blog post nicely (not that there is a lot).  
It’s repository be found here:

[http://dev.rubyonrails.org/svn/rails/plugins/ssl\_requirement/](http://dev.rubyonrails.org/svn/rails/plugins/ssl_requirement/)

Cheers,  
Walter

---

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [July 12, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090/5 "2007-07-12T15:49:16Z")

</div>

Using that repository, what else needs to be done to get SSL up and  
running using mongrel? Obtain a certificate, and then anything else?  
Can Mongrel do this without having Apache running in front of it?

Thanks again,

Simon

On Jul 11, 4:42 pm, “Walter McGinnis” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
