CertificateImports is used to import a certificate into a Windows certificate store.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Hashtable[] |
List of certifcates to import into a Windows certificate store. |
|||
Hashtable[] |
List of PFX certifcates to import into a Windows certificate store. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Thumbprint |
Key |
String |
The thumbprint (unique identifier) of the certificate you’re importing. |
|
Location |
Key |
String |
The Windows Certificate Store Location to import the certificate to. |
|
Store |
Key |
String |
The Windows Certificate Store Name to import the certificate to. You can get the list in Powershell with:
|
|
Path |
String |
The path to the CER file you want to import. |
||
Content |
String |
The base64 encoded content of the CER file you want to import. |
||
EmbedFile |
Boolean |
If |
|
|
FriendlyName |
String |
The friendly name of the certificate to set in the Windows Certificate Store. |
||
Ensure |
String |
Specifies whether the PFX file should be present or absent. |
|
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Thumbprint |
Key |
String |
The thumbprint (unique identifier) of the PFX file you’re importing. |
|
Location |
Key |
String |
The Windows Certificate Store Location to import the PFX file to. |
|
Store |
Key |
String |
The Windows Certificate Store Name to import the PFX file to. You can get the list in Powershell with:
|
|
Path |
String |
The path to the PFX file you want to import. |
||
Content |
String |
The base64 encoded content of the PFX file you want to import. |
||
EmbedFile |
Boolean |
If |
|
|
Exportable |
Boolean |
Determines whether the private key is exportable from the machine after it has been imported |
|
|
Credential |
PSCredential |
Credentials to decrypt the PFX file. |
||
FriendlyName |
String |
The friendly name of the certificate to set in the Windows Certificate Store. |
||
Ensure |
String |
Specifies whether the PFX file should be present or absent. |
|
CertificateImports:
CertFiles:
- Thumbprint: c81b94933420221a7ac004a90242d8b1d3e5070d
Location: LocalMachine
Store: Root
Path: '\\Server\Share\Certificates\MyTrustedRoot.cer'
EmbedFile: True
PfxFiles:
- Thumbprint: c81b94933420221a7ac004a90242d8b1d3e5070d
Path: '\\Server\Share\Certificates\CompanyCert.pfx'
Location: LocalMachine
Store: WebHosting
Credential: '[ENC=PE9ianMgVmVyc2lvbj0i...=]'
Datum.yml
(Excerpt)lookup_options:
CertificateImports:
merge_hash: deep
CertificateImports\CertFiles:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- Thumbprint
- Location
- Store
CertificateImports\PfxFiles:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- Thumbprint
- Location
- Store