Skip to main content

PowerShell Migration guide

As at June 10th, 2020, we will only support TLS1.2+ connections for Web and API access to the Pactflow platform.

Checking if your system is compatible#

You can check if your API client will work by testing against a TLS1.2 test host such as For Example:

Invoke-RestMethod -uri

An unsuccessful connection will look as follows:

Unsuccessful PowerShell connection

A successful connection will look as follows:

Successful PowerShell connection

Updating your security settings#

You can enable TLS1.2 as per below:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

You can also enable future protocols (such as TLS1.3) by allowing the client to negotiate multiple protocols:

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 -bor [System.Net.SecurityProtocolType]::Tls13;

.NET Best Practices#

See for best practices on TLS security.