rubrik-sdk-for-powershell icon indicating copy to clipboard operation
rubrik-sdk-for-powershell copied to clipboard

Invoke-RestMethod: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

Open andrewdobsonadp opened this issue 1 year ago • 1 comments

Current Behavior

Please accept my profound apologies if this has already been reported / resolved. I couldn't find a reference to this specific issue, so thought I'd open a request - my thanks in advance for your support.

In PowerShell 7.4.1 when attempting to connect to a Rubrik cluster running 8.1.3-p7-25298 we are seeing the following from Windows Server VMs on a remote network.

Connect-Rubrik -Server $RubrikCluster -Token $APIToken
Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

When I wrote attempt the same from my local machines it works absolutely fine. Apologies if I'm being dense, please could you steer me in the right direction to help the owner of the remote Windows Server VM to diagnose their issue?

Thanks in adbva

Expected Behavior

Simple PowerShell code shown below should connect to Rubrik cluster exclusively. I use the same sample code as the basis for many scripts, and it works in every environment I have access to (which includes multiple remote sites, and cluster running different CDM software versions).

Steps to Reproduce

Install or upgrade PowerShell - uncomment as necessary

#winget install --id Microsoft.Powershell --source winget

Install Rubrik PowerShell module - uncomment as necessary

#Install-Module -Name Rubrik -Scope CurrentUser

Update Rubrik PowerShell module - uncomment as necessary

#Update-Module Rubrik

Import Rubrik PowerShell module

Import-Module Rubrik

Confirm PowerShell compatibility and display warning if necessary

$PSVersionTested = '7.4.1' $PSVersionDetected = $PSVersionTable.PSVersion.ToString() if ($PSVersionDetected -lt $PSVersionTested) { Write-Host -f red "Environment warning: Detected PowerShell version is '$PSVersionDetected'. This script is only certified as operational in PowerShell version '$PSVersionTested' and above.`n" }

Capture RubrikCluster and APIToken to connect to Rubrik cluster

if ($global:RubrikCluster -eq $null) { $global:RubrikCluster = Read-Host "Please enter the target Rubrik cluster FQDN or IP address" } if ($global:APIToken -eq $null) { $global:APIToken = Read-Host "Please enter your API Token" }

Connect to Rubrik cluster

Connect-Rubrik -Server $RubrikCluster -Token $APIToken

Context

No response

Failure Logs

No response

andrewdobsonadp avatar Feb 27 '24 10:02 andrewdobsonadp

Hi @andrewdobsonadp - is there any ssl inspection happening between the networks? So long as there is connectivity and nothing is interfering it should work...

mwpreston avatar Jun 13 '24 15:06 mwpreston