OSDN Git Service

add 0.9-6 and the official image support.
[metasearch/grid-chef-repo.git] / certificates / README.md
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.  
2
3 Configure the values used in the SSL certificate by modifying `config/rake.rb`.
4
5 To generate a certificate set for a new monitoring server, for example:
6
7     rake ssl_cert FQDN=monitoring.example.com
8
9 Once the certificates are generated, copy them into the cookbook(s) where you want to use them.
10
11     cp certificates/monitoring.example.com.* cookbooks/COOKBOOK/files/default
12
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.
14
15     cookbook_file '/etc/apache2/ssl/monitoring.example.com.pem'
16       owner 'root'
17       group 'root'
18       mode 0600
19     end