Forge Home

cert_pfxcertificate

pfx file certificate import and removal by thumbprint - windows

11,071 downloads

11,071 latest version

1.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

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_pfxcertificate', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install karmafeast-cert_pfxcertificate --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_pfxcertificate — version 1.0.0 Sep 18th 2015

karmafeast-cert_pfxcertificate

pfx 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

example use:

class dogfood{

cert_pfxcertificate::import { 'www server cert':
    certpath  => "c:\\temp\\mycert.pfx",
    certrootstore => 'LocalMachine',
    certstore => 'My',
    ensure=> 'present',
    thumbprint=> '9111B22233387444855556663777786888269996',
    certpassword  => hiera('cert::my_www_com::pfxpw'),
  }

cert_pfxcertificate::import { 'www server cert removal':
    certrootstore => 'LocalMachine',
    certstore => 'My',
    ensure=> 'absent',
    thumbprint=> '9111B22233387444855556663777786888269996',
  }

}