- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with sslcertificate
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Small defined type that will allow you to manage Windows certificates.
A module that will allow you to install and remove your certificates on Windows machines. It will manage pfx, cer, der, p7b, sst certificates.
- Installs certificates into your Windows key stores
To install a certificate in the My directory of the LocalMachine root store:
sslcertificate { "Install-PFX-Certificate" :
name => 'mycert.pfx',
password => 'password123',
location => 'C:\',
thumbprint => '07E5C1AF7F5223CB975CC29B5455642F5570798B'
}
To install a certificate in an alternative directory:
sslcertificate { "Install-Intermediate-Certificate" :
name => 'go_daddy_intermediate.p7b',
location => 'C:\',
store_dir => 'CA',
root_store => 'LocalMachine',
thumbprint => '07E5C1AF7F5223CB975CC29B5455642F5570798B'
}
To install a certificate in the My directory of the LocalMachine root store using a different directory to store the scripts:
sslcertificate { "Install-PFX-Certificate" :
name => 'mycert.pfx',
password => 'password123',
location => 'C:',
thumbprint => '07E5C1AF7F5223CB975CC29B5455642F5570798B',
scripts_dir => 'C:\scripts_dir'
}
To install a certificate in the My directory of the LocalMachine root store and set the key as not exportable:
sslcertificate { "Install-PFX-Certificate" :
name => 'mycert.pfx',
password => 'password123',
location => 'C:',
thumbprint => '07E5C1AF7F5223CB975CC29B5455642F5570798B',
exportable => false
}
For more details on the different options available with certificate management directories, see Windows Dev Center.
The primary definition of the sslcertificate module. This definition will install the certificates into your keystore(s).
Parameters within sslcertificate
:
The password for the given certificate
The location where the file certificate is. Do not end the string with any forward or backslash.
The thumbprint used to verify the certificate
The certifcate store where the certificate will be installed to
The store location for the given certification store. Either LocalMachine or CurrentUser
The directory where the scripts to verify and install the certificates will be stored. By default is C:\temp
Flag to set the key as exportable. true
== exportable; false
== not exportable. By default is set to true
.
sslcertificate
: Guides the installation of certificates
This module is tested on the following platforms:
- Windows 2008 R2
It is tested with the OSS version of Puppet only.
Please read CONTRIBUTING.md for full details on contributing to this project.