Skip to content

Set-NBuntrustedSSL

Since

v4.4.10.0

SYNOPSIS

Disables SSL certificate validation for PowerShell Desktop (5.1).

SYNTAX

Set-NBuntrustedSSL [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Configures ServicePointManager to skip SSL certificate validation. This is only used for PowerShell Desktop (5.1) when -SkipCertificateCheck is specified. PowerShell Core (7+) uses the -SkipCertificateCheck parameter on Invoke-RestMethod directly.

EXAMPLES

EXAMPLE 1

Set-NBuntrustedSSL

Disables SSL certificate validation for the current PowerShell session. This is automatically called by Connect-NBAPI -SkipCertificateCheck on PowerShell Desktop (5.1).

EXAMPLE 2

Set-NBuntrustedSSL -Verbose Connect-NBAPI -Hostname "netbox.local" -Credential $cred

Manually disables certificate validation with verbose output, then connects to a Netbox instance with a self-signed certificate.

PARAMETERS

-ProgressAction

{{ Fill ProgressAction Description }}

```yaml Type: ActionPreference Parameter Sets: (All) Aliases: proga

Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ```

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Void

NOTES

AddedInVersion: v4.4.10.0 This function should only be called on PowerShell Desktop edition. Security Warning: Only use in development/testing environments with self-signed certificates. PowerShell Core (7+) uses the -SkipCertificateCheck parameter on Invoke-RestMethod directly.

Common parameters

common request params