Skip to content

Comments

Magicbluesmoke patch 1#390

Open
magicbluesmoke wants to merge 2 commits intosolarwinds:masterfrom
magicbluesmoke:magicbluesmoke-patch-1
Open

Magicbluesmoke patch 1#390
magicbluesmoke wants to merge 2 commits intosolarwinds:masterfrom
magicbluesmoke:magicbluesmoke-patch-1

Conversation

@magicbluesmoke
Copy link

Makes the -IgnoreSSLErrors parameter option available to trusted (all) connections made by the Swis-Connect command.

…arameter set

IgnoreSslErrors Parameter: The [Parameter(...)] attribute for the IgnoreSslErrors property no longer specifies a ParameterSetName. This makes it a common parameter that can be used with any parameter set, including -Trusted.

ConnectNetTcp() Method: A new block of code has been added at the end of this method. It checks if -IgnoreSslErrors was used. If so, it sets the CertificateValidationMode on the client credentials to X509CertificateValidationMode.None. This tells the WCF client framework to skip the validation of the server's certificate, which is the Net.Tcp equivalent of the ServicePointManager callback used for HTTPS.

Now you can run the Cmdlet in PowerShell like this:

powershell
Connect-Swis -Hostname "your-orion-server" -Trusted -IgnoreSslErrors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant