Add-NetIPHttpsCertBinding

Add-NetIPHttpsCertBinding

Binds an SSL certificate to an IP-HTTPS server.

構文

Parameter Set: AddCertBinding0
Add-NetIPHttpsCertBinding -ApplicationId <String> -CertificateHash <String> -CertificateStoreName <String> -IpPort <String> -NullEncryption <Boolean> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Add-NetIPHttpsCertBinding cmdlet binds an SSL certificate to an IP-HTTPS server.

This cmdlet does not work if there is already a certificate binding on the computer.

This cmdlet is similar to the netsh http add sslcert command, but the cmdlet should only be used for IP-HTTPS.

パラメーター

-ApplicationId<String>

Specifies the GUID to identify the application.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CertificateHash<String>

Specifies the SHA hashing of the certificate. This hash is 20 bytes long, and you must specify this value as a hexadecimal string.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CertificateStoreName<String>

Specifies the store name for the certificate.
This parameter defaults to MY for IP-based configurations.
This parameter is required.
You must store the certificate in the local system context.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-IpPort<String>

Specifies the IP address and the port for the binding. This parameter value should match the format 0.0.0.0:443.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-NullEncryption<Boolean>

Allows the usage of IP-HTTPS without SSL encryption, if the parameter value is True.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None

    This cmdlet accepts no input objects.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

Example 1: Add an SSL certificate

This command binds an SSL certificate with the specified IP port 10.1.1.1:443, SHA hash 0102030405060708090A0B0C0D0E0F1011121314, application ID {3F2504E0-4F89-11D3-9A0C-0305E82C3301}, and store name my to the IP-HTTPS server.

PS C:\> Add-NetIPHttpsCertBinding -IpPort "10.1.1.1:443" -CertificateHash "0102030405060708090A0B0C0D0E0F1011121314" -CertifcateStoreName "my" –ApplicationId "{3F2504E0-4F89-11D3-9A0C-0305E82C3301}" –NullEncryption $false

関連トピック

Remove-NetIPHttpsCertBinding