Add-CAAuthorityInformationAccess

Add-CAAuthorityInformationAccess

Configures the Authority Information Access (AIA) or Online Certificate Status Protocol (OCSP) for a certification authority (CA).

Sintaxis

Parameter Set: AddAsAIA
Add-CAAuthorityInformationAccess [-Uri] <String> -AddToCertificateAia [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddAsInputObject
Add-CAAuthorityInformationAccess [-InputObject] <AuthorityInformationAccess> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddAsOCSP
Add-CAAuthorityInformationAccess [-Uri] <String> -AddToCertificateOcsp [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

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.

Parámetros

-AddToCertificateAia

Specifies to add the URI to the AIA extension of the issued certificate.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-AddToCertificateOcsp

Specifies to add the URI to the Online Responder OCSP extension of the issued certificate.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Force

Suppresses all user prompts. By default, you are prompted to confirm each operation.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<AuthorityInformationAccess>

The input object is meant to be used in a pipeline command.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-Uri<String>

Specifies a URI for the AIA or Online Responder OCSP location.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • System.String

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.CertificateServices.Administration.Commands.CA.AuthorityInformationAccessResult

    This output object has a single property named Restart of Boolean type, which by default is set to True.

Ejemplos

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

Adds Authority Information Access (AIA) for the specified certification authority to http://ca1.corp.contoso.com/pki

PS C:\> Add-CAAuthorityInformationAccess –AddToCertificateAia -uri http://ca1.corp.contoso.com/pki

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

Adds AIA for OCSP pointing to http://www.corp.contoso.com/ocsp

PS C:\> Add-CAAuthorityInformationAccess -AddToCertificateOcsp -uri http://www.corp.contoso.com/ocsp

-------------------------- EXAMPLE 3 --------------------------

These commands remove all AIA entries

PS C:\> $aia = Get-CAAuthorityInformationAccess
PS C:\> $aia | remove-CAAuthorityInformationAccess

Temas relacionados

Get-CAAuthorityInformationAccess

Remove-CAAuthorityInformationAccess