1 Creating SSL certificates is a common task done in web application infrastructures, so a rake task is provided to generate certificates. These certificates are stored here by the ssl_cert task.
3 Configure the values used in the SSL certificate by modifying `config/rake.rb`.
5 To generate a certificate set for a new monitoring server, for example:
7 rake ssl_cert FQDN=monitoring.example.com
9 Once the certificates are generated, copy them into the cookbook(s) where you want to use them.
11 cp certificates/monitoring.example.com.* cookbooks/COOKBOOK/files/default
13 In the recipe for that cookbook, create a `cookbook_file` resource to configure a resource that puts them in place on the destination server.
15 cookbook_file '/etc/apache2/ssl/monitoring.example.com.pem'