Mharlin / puppet-sslcert

Puppet module to manage SSL Certificates on WIndows Server 2008 and upwards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppet-sslcert

Small define that will allow you to manage Windows certificates. It will manage pfx, cer, der, p7b, sst certificates.

Build Status

Usage

sslcertificate { "Install-PFX-Certificate" :
	name     => 'mycert.pfx',
	password => 'password123',
	location => 'C:\',
}

By default, it will store the certificate in Local Machine root store and in the My directory. If you want to change these, then use the parameters as follows:

sslcertificate { "Install-Intermediate-Certificate" :
	name       => 'go_daddy_intermediate.p7b',
	location   => 'C:\',
	store_dir  => 'CA',
	root_store => 'LocalMachine'
}

For more details on the different options available with certificate management directories, see Windows Dev Center.

Please note, you must download the file to the host before trying to install it. E.g:

file { 'go_daddy_intermediate' :
  ensure  => file,
  path    => 'C:\MyCerts',
  source  => "puppet:///modules/certificates/${name}",
}

sslcertificate { "Install-Intermediate-Certificate" :
	name       => 'go_daddy_intermediate.p7b',
	location   => 'C:\MyCerts',
	store_dir  => 'CA',
	root_store => 'LocalMachine',
	require    => File['go_daddy_intermediate']
}   

The system sits on top of PowerShell, so if the PowerShell file cannot get to the certificate, then it will not be able to install it.

About

Puppet module to manage SSL Certificates on WIndows Server 2008 and upwards

License:MIT License


Languages

Language:Ruby 73.0%Language:Puppet 27.0%