Skip to content
SSL certificates cookbook for Chef
Ruby
Find file
Latest commit 83cebec @tanordheim tanordheim Merge pull request #1 from typo3-cookbooks/master
Couple of changes
Failed to load latest commit information.
attributes
definitions Use file resource instead of template
recipes Increase test coverage
spec Increase test coverage
README.md Update README
metadata.rb Bump version

README.md

DESCRIPTION

Installs and configures SSL certificates for a node.

This cookbook is inspired by the 37 Signals SSL certificates cookbook.

REQUIREMENTS

Only tested on Debian 6.0.

USAGE

SSL certificates are defined in the "certificates" cookbook.

{
  "id": "my_ssl_cert",
  "name": "ssl.example.com",
  "key": "[raw SSL key]",
  "crt": "[raw SSL crt]",
  "pem": "[raw SSL pem]",
  "ca_bundle": "[raw SSL ca-bundle]"
}

To install a SSL certificate on a node, use the SSL certificate definition in your recipe, like this:

ssl_certificate 'ssl.example.com'

To create a certificate file combined of the crt and the ca-bundle (e.g. for nginx), set the attribute ca_bundle_combined:

ssl_certificate `ssl.example.com` do
  ca_bundle_combined true
end
Something went wrong with that request. Please try again.