Add-CAAuthorityInformationAccess
Configures the Authority Information Access (AIA) or Online Certificate Status Protocol (OCSP) for a certification authority (CA).
The Add-CAAuthorityInformationAccess cmdlet configures the uniform resource identifier (URI) for the AIA or Online Responder OCSP location for a CA. An AIA URI should specify either an AIA extension or an OCSP extension, but not both.
Parameters
Specifies to add the URI to the AIA extension of the issued certificate.
Required? true
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-AddToCertificateOcsp
Specifies to add the URI to the Online Responder OCSP extension of the issued certificate.
Required? true
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Force
Suppresses all user prompts. By default, you are prompted to confirm each operation.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InputObject
The input object is meant to be used in a pipeline command.
Required? true
Position? 2
Default value
Accept pipeline input? True (ByValue, ByPropertyName)
Accept wildcard characters? false
-Uri
Specifies a URI for the AIA or Online Responder OCSP location.
Required? true
Position? 2
Default value
Accept pipeline input? True (ByValue, ByPropertyName)
Accept wildcard characters? false
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Add-CAAuthorityInformationAccess [-InputObject] <AuthorityInformationAccess> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-CAAuthorityInformationAccess [-Uri] <string> -AddToCertificateAia [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-CAAuthorityInformationAccess [-Uri] <string> -AddToCertificateOcsp [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
————————– EXAMPLE 1 ————————–
PS C:>Add-CAAuthorityInformationAccess –AddToCertificateAia -uri http:// TOSSolution .com/pki
Adds Authority Information Access (AIA) for the specified certification authority to http:// TOSSolution .com/pki
PS C:>Add-CAAuthorityInformationAccess -AddToCertificateOcsp -uri http://www. TOSSolution .com/ocsp
Adds AIA for OCSP pointing to http://www.TOSSolution.com/ocsp
PS C:>$aia = Get-CAAuthorityInformationAccess
PS C:\>$aia | remove-CAAuthorityInformationAccess
These commands remove all AIA entries
Get-Command Add-CAAuthorityInformationAccess
Get-CAAuthorityInformationAccess
Remove-CAAuthorityInformationAccess
Like!! Really appreciate you sharing this blog post.Really thank you! Keep writing.