CertificateRequests requests new certificates from a Certificate Authority and waits for certificate services availability.
Use this resource when you need to automatically request and enroll certificates from an internal Certificate Authority. This is ideal for automating SSL/TLS certificate provisioning on web servers, ensuring certificates are always present and valid without manual intervention.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of certificate requests. |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Subject |
Key |
String |
Provide the text string to use as the subject of the certificate. |
|
CAType |
String |
The type of CA in use, Standalone/Enterprise. |
||
CAServerFQDN |
String |
The FQDN of the Active Directory Certificate Authority on the local area network. Leave empty to automatically locate. |
||
CARootName |
String |
The name of the certificate authority, by default this will be in format domain-servername-ca. Leave empty to automatically locate. |
||
KeyLength |
String |
The bit length of the encryption key to be used. |
|
|
Exportable |
Boolean |
The option to allow the certificate to be exportable. |
|
|
ProviderName |
String |
The selection of provider for the type of encryption to be used. |
||
OID |
String |
The Object Identifier that is used to name the object. |
||
KeyUsage |
String |
The Keyusage is a restriction method that determines what a certificate can be used for. |
||
CertificateTemplate |
String |
The template used for the definition of the certificate. |
||
SubjectAltName |
String |
The subject alternative name used to create the certificate. |
||
Credential |
PSCredential |
The |
||
AutoRenew |
Boolean |
Determines if the resource will also renew a certificate within 7 days of expiration. |
|
|
CepURL |
String |
The URL to the Certification Enrollment Policy Service. |
||
CesURL |
String |
The URL to the Certification Enrollment Service. |
||
UseMachineContext |
Boolean |
Indicates whether or not the flag |
|
|
FriendlyName |
Key |
String |
Specifies a friendly name for the certificate. |
|
KeyType |
String |
Specifies if the key type should be |
|
|
RequestType |
String |
Specifies if the request type should be |
|
CertificateRequests:
Requests:
- CARootName: "test-dc01-ca"
CAServerFqdn: "dc01.test.pha"
Subject: "foodomain.test.net"
KeyLength: "2048"
Exportable: true
ProviderName: "Microsoft RSA SChannel Cryptographic Provider"
OID: "1.3.6.1.5.5.7.3.1"
KeyUsage: "0xa0"
CertificateTemplate: "WebServer"
AutoRenew: true
FriendlyName: "SSL Cert for Web Server"
KeyType: "RSA"
RequestType: "CMC"
- CARootName: "test-dc02-ca"
CAServerFqdn: "dc02.test.pha"
Subject: "some.web.server"
KeyLength: "2048"
CertificateTemplate: "WebServer"
AutoRenew: true
FriendlyName: "SSL Cert for Web Server"
KeyType: "RSA"
RequestType: "PKCS10"
SubjectAltName: "FRONTEND"