mark cerqueira well-rounded nerd

ACME Responder for Sinatra

Scenario: you’ve got a snazzy Sinatra server running on Heroku. You just got a fancy custom domain and you now want to get an SSL certificate for it.

Solution: Damien Mathieu from the Heroku team built a cool utility to automate SSL certificate generation and renewal: sabanyon. Bonus points for naming it after a delicious Italian dessert! The instructions exist (never a given), are easy to follow (happens sometimes), and work as expected (frequently rare). Thanks, Damien!

Damien includes challenge responder code for a bunch of different apps, but not Sinatra. Fortunately, the Ruby example provided only needs a few tweaks to get everything working:

Now your domain will have an SSL certificate forever!