-
Notifications
You must be signed in to change notification settings - Fork 31
AdcsAuthorityInformationAccess
dscbot edited this page Jul 23, 2025
·
4 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| IsSingleInstance | Key | System.String | Specifies the resource is a single instance, the value must be 'Yes'. | |
| AiaUri | Write | System.String[] | Specifies the list of URIs that should be included in the AIA extension of the issued certificate. | |
| AllowRestartService | Write | System.Boolean | Allows the Certificate Authority service to be restarted if changes are made. | |
| OcspUri | Write | System.String[] | Specifies the list of URIs that should be included in the Online Responder OCSP extension of the issued certificate. | |
| Reasons | Read | AdcsReason[] | Returns the reason a property is not in desired state. |
This resource can be used to configure the URIs in the Authority Information Access and Online Responder OCSP extensions of certificates issued by an Active Directory Certificate Authority.
This example will set the Authority Information Access URIs to be included in the AIA extension.
configuration AdcsAuthorityInformationAccess_SetAia_Config
{
Import-DscResource -ModuleName ActiveDirectoryCSDsc
node localhost
{
AdcsAuthorityInformationAccess SetAia
{
IsSingleInstance = 'Yes'
AiaUri = @(
'http://setAIATest1/Certs/<CATruncatedName>.cer'
'http://setAIATest2/Certs/<CATruncatedName>.cer'
'http://setAIATest3/Certs/<CATruncatedName>.cer'
'file://<ServerDNSName>/CertEnroll/<ServerDNSName>_<CAName><CertificateName>.crt'
)
AllowRestartService = $true
}
}
}This example will set the Online Responder OCSP URIs to be included in the OCSP extension.
configuration AdcsAuthorityInformationAccess_SetOcsp_Config
{
Import-DscResource -ModuleName ActiveDirectoryCSDsc
node localhost
{
AdcsAuthorityInformationAccess SetOcsp
{
IsSingleInstance = 'Yes'
OcspUri = @(
'http://primary-ocsp-responder/ocsp'
'http://secondary-ocsp-responder/ocsp'
'http://tertiary-ocsp-responder/ocsp'
)
AllowRestartService = $true
}
}
}This example will set the Authority Information Access and Online Responder OCSP URIs to be included in the AIA and OCSP extensions respectively.
configuration AdcsAuthorityInformationAccess_SetAiaAndOcsp_Config
{
Import-DscResource -ModuleName ActiveDirectoryCSDsc
node localhost
{
AdcsAuthorityInformationAccess SetAiaAndOcsp
{
IsSingleInstance = 'Yes'
AiaUri = @(
'http://setAIATest1/Certs/<CATruncatedName>.cer'
'http://setAIATest2/Certs/<CATruncatedName>.cer'
'http://setAIATest3/Certs/<CATruncatedName>.cer'
'file://<ServerDNSName>/CertEnroll/<ServerDNSName>_<CAName><CertificateName>.crt'
)
OcspUri = @(
'http://primary-ocsp-responder/ocsp'
'http://secondary-ocsp-responder/ocsp'
'http://tertiary-ocsp-responder/ocsp'
)
AllowRestartService = $true
}
}
}This example will clear the Authority Information Access and Online Responder OCSP URIs from the AIA and OCSP extensions respectively.
configuration AdcsAuthorityInformationAccess_ClearAiaAndOcsp_Config
{
Import-DscResource -ModuleName ActiveDirectoryCSDsc
node localhost
{
AdcsAuthorityInformationAccess ClearAiaAndOcsp
{
IsSingleInstance = 'Yes'
AiaUri = @()
OcspUri = @()
AllowRestartService = $true
}
}
}