Skip to content

Latest commit

 

History

History
172 lines (97 loc) · 3.88 KB

REFERENCE.md

File metadata and controls

172 lines (97 loc) · 3.88 KB

Reference

Table of Contents

Defined types

Defined types

sslcertificate

Author:: Paul Stack (mailto:[email protected]) Copyright:: Copyright (c) 2013 OpenTable Inc License:: MIT == Define: sslcertificate

This defined type will install SSL Certs on windows

=== Requirements/Dependencies

Currently reequires the puppetlabs/stdlib module on the Puppet Forge in order to validate much of the the provided configuration.

=== Parameters

[password] The password for the given certificate By default is undef

[location] The location to store intermediate certificates. Do not end the string with any forward or backslash.

[thumbprint] The thumbprint used to verify the certificate

[store_dir] The certificate 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 is no longer used.

[exportable] This parameter determines whether the certificate key is exportable or not.

[wildcard] This parameter determines whether the certificate is a wildcard certificate or not.

[interstore] This parameter determines whether the certificate is an intermediate certificate or not.

=== Examples

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 certifcate 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 }

Parameters

The following parameters are available in the sslcertificate defined type:

location

Data type: String[1]

thumbprint

Data type: String[1]

password

Data type: Optional[String[1]]

Default value: undef

root_store

Data type: String[1]

Default value: 'LocalMachine'

store_dir

Data type: String[1]

Default value: 'My'

scripts_dir

Data type: Stdlib::Windowspath

Default value: 'C:\temp'

exportable

Data type: Boolean

Default value: true

wildcard

Data type: Boolean

Default value: false

interstore

Data type: Boolean

Default value: false