Author Archives: Ariejan de Vroom
Setup a self-signed SSL site with Apache2
Some things need to be secure. Login and registration pages are often among them. This guide will show you how to quickly set-up a SSL site with a self-signed certificate and automatic HTTP-to-HTTPS redirect. This is ideal for setting up staging environments.
I’ll assume you have a standard Debian system with the apache2 package installed [...]
Posted in Random Leave a comment
Presentation: Heroku & Jeweler + Gemcutter
A small presentation by Ariejan on two topics:
Heroku – What is Heroku and how does it compare to Amazon EC2 and Kabisa’s Hosting
Jeweler + Gemcutter – How to use Jeweler to manage your gem and push it to gemcutter
Xen: How to fix “SIOCSIFADDR: No such device”
Yesterday I had to clone a VPS to run some CPU and memory intensive tests. With our current setup (Xen + LVM), cloning an image on the fly is easy.
After configuring a new IP address for the clone, I booted up the system. Nice, but I ran into a problem:
Configuring network interfaces...SIOCSIFADDR: No such [...]
Ruby and SSL Certificate Validation
If your ruby app is doing SSL, you have probably seen one of the following errors:
doc = Hpricot(open("https://www.cert.org/blogs/vuls/rss.xml")) # => /usr/lib/ruby/1.8/net/http.rb:590:in `connect': certificate verify failed (OpenSSL::SSL::SSLError)
or
warning: peer certificate won't be verified in this SSL session
The solution is to make sure ruby has access to the right set of root certificates.
Dynamic Queue Assignment for Resque Jobs