How to generate the Private Key, what's the correct chaining order, or how to create a PEM Certificate? We all know it and we hate it: Installing or renewing the SSL certificates for our application.

And after you finally figured it out, you'll unlearn the progress till you need it again. So I wrote a small Capistrano recipe to help you with this annoying job.

(Find the revised Capistrano 3 version here.)

The recipe ships with three common tasks:

To keep things simple there are a few conventions:

First, grab the recipe.