cert_x509certificate

contributions requested
x509 .cer file certificate import and removal by thumbprint - windows

8,333 downloads

8,333 latest version

3.1 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
released Sep 18th 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'karmafeast-cert_x509certificate', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add karmafeast-cert_x509certificate
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install karmafeast-cert_x509certificate --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

karmafeast/cert_x509certificate — version 1.0.0 Sep 18th 2015

karmafeast-cert_x509certificate

x509 .cer file import to cert stores on windows via powershell.

removal via ensure => absent and thumbprint match.

need cert thumbprint for unless comparison in ensure => present unless file provided

example use:

class dogfood{

cert_x509certificate::import { 'intermediate CA cert':
	certpath  => "c:\\temp\\mycert.cer",
	certrootstore => 'LocalMachine',
	certstore => 'CA',
	ensure=> 'present',
  }

cert_x509certificate::import { 'remove old cert':
	certrootstore => 'LocalMachine',
	certstore => 'My',
	ensure=> 'absent',
	thumbprint=> '4111F03333C8942222229B277777772350002A97',
  }

}