cookbook 'nss_tools', '= 0.1.0', :supermarket
nss_tools (2) Versions 0.1.0 Follow1
cookbook 'nss_tools', '= 0.1.0'
knife supermarket install nss_tools
knife supermarket download nss_tools
This cookbook provides a LWRP for managing Mozilla NSS Certificate databaes.
A nss_tools_certdb resource block manages a named entry in a Mozilla Certificate
database. The full syntax for all of the properties that are available to the
nss_tools_certdb 'name' do
ca String, Array
notifies # see description
subscribes # see description
action Symbol # defaults to :update
name is the name of the entry in the database (-n)
directory is the directory of the database (-d), default:
dbprefix is the prefix of the database (see certutil for more info), optional
key: see "Properties" section below
This resource has the following actions:
:updateDefault. Adds a new entry or checks to see if it is up-to-date with the source.
:deleteEnsures that an entry doesn't exist.
:nothingDefine this resource block to do nothing until notified by another resource to take action. When this resource is notified, this resource block is either run immediately or it is queued up to be run at the end of the chef-client run.
This resource has different properties depending on the input type. Input can be certificate / key pairs in PEM or DER format. If both are passed PEM will take priority.
PEM Certificate + Key (optionally CA)
ca(String, Array) (Optional): Path to a PEM encoded CA certificate or CA certificate bundle. Can also be an array of paths.
crt(String): Path to a PEM encoded certificate.
key(String): Path to a PEM encoded private key.
nss_tools_certdb 'My Certificate' do directory '/etc/myapp' dbprefix 'myapp' ca '/etc/ssl/ca/my-ca.crt' crt '/etc/ssl/cert/my-cert.crt' key '/etc/ssl/private/my-cert.key' notifies :restart, 'service[myapp]', :delayed end
der(String): Path to PKCS12 DER encoded certificate / key (optionally CA) file.
nss_tools_certdb 'My Certificate' do directory '/etc/myapp' dbprefix 'myapp' der '/etc/ssl/my-cert.p12' notifies :restart, 'service[myapp]', :delayed end
License and Authors
Author:: Altiscale, Inc (firstname.lastname@example.org)
License:: Apache 2.0
This cookbook has no specified dependencies.
There are no cookbooks that are contingent upon this one.
Initial release of nss_tools
0.1.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/f8427a76de1cfcf7bcfedb5c/nss_tools/providers/certdb.rb:104
0.1.0 failed this metric