Add-NetIPHttpsCertBinding

Add-NetIPHttpsCertBinding

Binds an SSL certificate to an IP-HTTPS server.

Syntax

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

Detailed Description

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.

Parameters

-ApplicationId<String>

Specifies the GUID to identify the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AsJob

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CimSession<CimSession[]>

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NullEncryption<Boolean>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ThrottleLimit<Int32>

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

    This cmdlet accepts no input objects.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

Examples

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