Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrewdobsonadp opened this issue Feb 27, 2024 · 1 comment
Labels

Comments

@andrewdobsonadp
Copy link

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

@mwpreston
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants