CertificateExports is used to export a certificate from the Windows certificate store.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Hashtable[] |
List of certifcates to export from the Windows certificate store. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Path |
Key |
String |
The path to the file you that will contain the exported certificate. |
|
Thumbprint |
String |
The thumbprint of the certificate to export. Certificate selector parameter. |
||
FriendlyName |
String |
The friendly name of the certificate to export. Certificate selector parameter. |
||
Subject |
String |
The subject of the certificate to export. Certificate selector parameter. |
||
DNSName |
String[] |
The subject alternative name of the certificate to export must contain these values. Certificate selector parameter. |
||
Issuer |
String |
The issuer of the certificate to export. Certificate selector parameter. |
||
KeyUsage |
String[] |
The key usage of the certificate to export must contain these values. Certificate selector parameter. |
||
EnhancedKeyUsage |
String[] |
The enhanced key usage of the certificate to export must contain these values. Certificate selector parameter. |
||
Store |
String |
The Windows Certificate Store Name to search for the certificate to export from. You can get the list in Powershell with:
Certificate selector parameter. |
Default: My |
|
AllowExpired |
Boolean |
Allow an expired certificate to be exported. Certificate selector parameter. |
|
|
MatchSource |
Boolean |
Causes an existing exported certificate to be compared with the certificate identified for export and re-exported if it does not match. |
|
|
Type |
String |
Specifies the type of certificate to export. |
|
|
ChainOption |
String |
Specifies the options for building a chain when exporting a PFX certificate. |
|
|
Password |
PSCredential |
Specifies the password used to protect an exported PFX file. Either the |
||
ProtectTo |
String[] |
Specifies an array of strings for the username or group name that can access the private key of an exported PFX file without any password. Either the This requires a Windows Server® 2012 domain controller. |
CertificateExports:
Certificates:
- Path: C:\User1Certificate.pfx
Thumbprint: c81b94933420221a7ac004a90242d8b1d3e5070d
Store: Root
Type: PFX
ProtectTo: contoso\user1
- Path: C:\PwdCertificate.pfx
Thumbprint: c81b94933420221a7ac004a90242d8b1d3e50456
Store: Root
Type: PFX
Password: '[ENC=PE9ianMgVmVyc2l...=]'
- Path: C:\CACertificate.cer
Thumbprint: c81b94933420221a7ac004a90242d8b1d3e12345
Store: Root
Type: Cert
Datum.yml
(Excerpt)lookup_options:
CertificateExports:
merge_hash: deep
CertificateExports\Certificates:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- Thumbprint
- Location
- Store