- Description
- Setup - The basics of getting started with iis_letsencrypt
- 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
Puppet module designed to request and deploy valid SSL certificates from LetsEncrypt via ACME and deploy them to Windows Certificate Store and apply to your site. Also it would check certificate expire date on every Puppet run and reissue the certificate if needed.
Implemented via Custom Provider with self.instances & prefetch.
Big thanks to puppetlabs-iis module where I got powershell workarounds and to developers of acme-client
This module fully affects:
- Automatically installing Rubygems Dependencies
- Creating/removing virtual directories in IIS for new requests.
- Requesting new certificate via ACME, save it in Certificate Store and deploy to IIS Site.
This module works perfectly with puppetlabs-iis module, so feel free to work with it but it's not actually a requrement.
Full example with IIS you'd able to find in examples/init.pp file.
ssl_cert { $mydomain1:
ensure => present,
staging => true,
remove_http_bind => true,
cert_pass => '12345',
cert_path => 'C:\\certs',
contact_email => 'email@example.com',
physicalpath => 'C:\\mysite\\virtualfolder'
}
Name specifies sitename in IIS where cert should apply to.
If your domain name is not the same as your site name you could specify it in thus section. Defaults to :name.
Boolean. Should we use staging letsencrypt environment on true. Defaults to false
Boolean. Should provider remove http bind after activation of certificate.
Password for PFX cert file.
Where we should store PFX and PEM files.
Boolean. Should we use remove certificate files from your file system. Defaults to true
Contact Email of person for whom cert applies to.
Physical path on your machine for .well-known virtual directory
Also this module contains custom fact generator for getting SSL thumbprints. You could use them as $ssl_ + domain name without dots i.e $ssl_examplecom or $ssl_facebookcom
Only Windows with Ruby >= 2.1.0 Tested on Win2012R2 with IIS 8.5
Feel free to fork, pull requests and so on.