sslcertificate
Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
- Puppet >= 5.5.8 < 7.0.0
This module has been deprecated by its author since Jun 26th 2023.
Start using this module
Documentation
SSL Certificate module for Puppet
Table of Contents
- 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
Overview
Small defined type that will allow you to manage Windows certificates.
Module Description
A module that will allow you to install and remove your certificates on Windows machines. It will manage pfx, cer, der, p7b, sst certificates.
Setup
What sslcertificate affects
- Installs certificates into your Windows key stores
Beginning with sslcertificate
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 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.
Usage
Classes and Defined Types
Defined Type: sslcertificate
The primary definition of the sslcertificate module. This definition will install the certificates into your keystore(s).
Parameters within sslcertificate
:
password
The password for the given certificate
location
The location where the file certificate is. Do not end the string with any forward or backslash. Note that in puppet manifests, double-backslashes must be re-doubled, even in single-quoted strings, e.g.
sslcertificate { "Install-PFX-Certificate from UNC path" :
name => 'mycert.pfx',
password => 'password123',
location => '\\\\StorageServer\Fileshare',
thumbprint => '07E5C1AF7F5223CB975CC29B5455642F5570798B'
}
thumbprint
The thumbprint used to verify the certificate
store_dir
The certifcate store where the certificate will be installed to
root_store
The store location for the given certification store. Either LocalMachine or CurrentUser
scripts_dir
This parameter has been deprecated and isn't used anymore. The scripts aren't saved to disk anymore.
exportable
Flag to set the key as exportable. true
== exportable; false
== not exportable. By default is set to true
.
wildcard
Flag to set the MachineKeySet flag in import, used for importing wildcard certificates. Defaults to false
interstore
If this is set to true
, any intermediate certificates included will be imported in the same store_dir, not the intermediate store.
Defaults to false
Reference
Definition
Public Definition
sslcertificate
: Guides the installation of certificates
Limitations
This module is tested on the following platforms:
- Windows 2008 R2
It is tested with the OSS version of Puppet only.
Development
Contributing
Please read CONTRIBUTING.md for full details on contributing to this project.
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v4.1.0 (2020-01-14)
Closed issues:
- Cannot install from UNC drive share #99
- Needs to be idempotent #22
- forge page is confusing #14
- Intermediate store isn't closed after import. #12
- Add secure password capabilities #7
Merged pull requests:
- ISSUE-99: Add note explaining redoubled backslashes. #100 (pillarsdotnet)
- ISSUE-12: Close intermediate store after import. #98 (pillarsdotnet)
- Remove duplicate CONTRIBUTING.md file #95 (dhoppe)
- Allow
puppetlabs/stdlib
6.x #93 (cubiclelord) - No need to remove the running temp file #91 (johnburns320)
v4.0.0 (2019-05-02)
Breaking changes:
- modulesync 2.5.1 & drop Puppet 4 #88 (bastelfreak)
Implemented enhancements:
- Add wildcard & bypass Intermediate Store support #84 (arthurbarton)
Fixed bugs:
- PrivateKey directory is filling up #33
- Checks if the certificate is installed without creating an object #70 (cmezzett)
Merged pull requests:
- modulesync 2.2.0 and allow puppet 6.x #85 (bastelfreak)
- Do not remove scripts as they are not stored on disk #76 (walkamongus)
v3.4.0 (2018-09-07)
Implemented enhancements:
- Allow managing SSL certificates without a password #64
Merged pull requests:
- allow puppetlabs/stdlib 5.x #80 (bastelfreak)
- Remove docker nodesets #75 (bastelfreak)
- drop EOL OSs; fix puppet version range #73 (bastelfreak)
v3.3.0 (2018-02-13)
Implemented enhancements:
- Don't store the PS1 scripts #66 (natemccurdy)
- Make the password parameter optional #65 (rnelson0)
Merged pull requests:
v3.2.0 (2017-11-20)
Merged pull requests:
- bump puppet version dependency to >= 4.7.1 \< 6.0.0 #59 (bastelfreak)
v3.1.0 (2017-09-17)
Merged pull requests:
- Update import.ps1.erb to work with P12 format #48 (tramaswami)
v3.0.0 (2017-06-26)
Implemented enhancements:
- Set mode to 0600 on sensitive scripts #54 (roidelapluie)
- New argument to set exportability of the certificate #46 (ricardogaspar2)
Fixed bugs:
- Fixing typo #50 (thirumoorthir)
Closed issues:
- Certificate for testing #44
Merged pull requests:
- release 3.0.0 #55 (bastelfreak)
- replace validate_* with puppet4 datatypes #52 (bastelfreak)
v2.2.0 (2017-02-11)
Closed issues:
- Undocumented dependency on module puppetlabs/powershell #23
Merged pull requests:
- modulesync 0.16.7 #39 (bastelfreak)
- Set min version_requirement for Puppet + bump deps #36 (juniorsysadmin)
- modulesync 0.16.6 #35 (bastelfreak)
- modulesync 0.16.4 #34 (bastelfreak)
- modulesync 0.16.3 #32 (bastelfreak)
- Fix references to
sslcert
#30 (alexjfisher) - modulesync 0.15.0 #28 (bastelfreak)
- Add missing badges #27 (dhoppe)
- Update based on voxpupuli/modulesync_config 0.14.1 #26 (dhoppe)
- Fix README.md #21 (madAndroid)
- Perform modulesync (0.3.0) #20 (juniorsysadmin)
- Modulesync (modulesync_config 0.1.0) #19 (juniorsysadmin)
- Fix installing single certificates #18 (damoxc)
- Perform a modulesync #17 (juniorsysadmin)
- Added support for managing .P12 certificates #4 (Mharlin)
v2.1.1 (2015-03-24)
v2.1.0 (2014-10-13)
v2.0.2 (2014-08-04)
v2.0.1 (2014-08-04)
Merged pull requests:
v2.0.0 (2014-04-16)
Merged pull requests:
v1.0.1 (2014-03-14)
v1.0.0 (2014-03-12)
Merged pull requests:
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 7.0.0)
- puppetlabs/powershell (>= 1.1.1 < 3.0.0)
Copyright (c) 2014 OpenTable, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.