Skip to content

Powershell DSC resource for installing Personal Information Exchange (PFX) certificate bundles

License

Notifications You must be signed in to change notification settings

VirtualEngine/cPfxCertificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Included DSC Resources

  • cPfxCertificate

This custom Desired State Configuration (DSC) resource utilise .NET x509 certificate objects to install Personal Information Exchange (PFX) certificate bundles.

cPfxCertificate

###Syntax

cPfxCertificate [string]
{
    Thumbprint = [string]
    Location = [string] { LocalMachine | CurrentUser }
    Store = [string] { AddressBook | AuthRoot | CertificateAuthority | Disallowed | My | Root | TrustedPeople | TrustedPublisher }
    Path = [string]
    Credential = [PSCredential] { Password }
    Ensure = [string] { Present | Absent }
    Exportable = [bool]
}

###Properties

  • Thumbprint: Certificate thumbprint.
  • Location: Destination physical certificate store location.
  • Store: Destination certificate store name. Use 'My' for the 'Personal' store.
  • Path: Source file system path to the .pfx certificate bundle.
  • Credential: PSCredential object containing the certificate password.
  • Exportable: Mark private key as exportable.

###Configuration

Configuration Example_cPfxCertificate {
    Import-DscResource -ModuleName cPfxCertificate
    cPfxCertificate MyCertificate {
        Thumbprint = 'A4D8B8E3B1B6910CB54C3B6CDFD6478914327850'
        Location = 'LocalMachine'
        Store = 'My'
        Path = 'C:\Resources\MyCertificate.pfx'
        Credential = (Get-Credential MyCertificateCredentials)
        Exportable = $true
    }
}

About

Powershell DSC resource for installing Personal Information Exchange (PFX) certificate bundles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published