Skip to content

puppet - X509 certificate import and removal via powershell provider - windows

Notifications You must be signed in to change notification settings

karmafeast/cert_x509certificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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',
  }

}

About

puppet - X509 certificate import and removal via powershell provider - windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages