Add-CAAuthorityInformationAccess
Add-CAAuthorityInformationAccess
Configures the Authority Information Access (AIA) or Online Certificate Status Protocol (OCSP) for a certification authority (CA).
構文
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>]
詳細説明
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.
パラメーター
-AddToCertificateAia
Specifies to add the URI to the AIA extension of the issued certificate.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-AddToCertificateOcsp
Specifies to add the URI to the Online Responder OCSP extension of the issued certificate.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Force
Suppresses all user prompts. By default, you are prompted to confirm each operation.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<AuthorityInformationAccess>
The input object is meant to be used in a pipeline command.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Uri<String>
Specifies a URI for the AIA or Online Responder OCSP location.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- System.String
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
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.
例
-------------------------- 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