Azure/hpcpack

SSL connection fails when creating DurableSession.

Opened this issue · 1 comments

Problem Description

HPC Pack .Net SDK (6.3.8022-beta)

*** Exception ***
The SSL connection could not be established, see inner exception.
The remote certificate was rejected by the provided RemoteCertificateValidationCallback.

Steps to Reproduce

var info = new SessionStartInfo(headnode, SERVICE_NAME)
{
SessionResourceUnitType = SessionUnitType.Core,
Secure = false,
Username = user,
Password = password,
//ServiceHangTimeout = 60 * 10
UseWindowsClientCredential = true,
TransportScheme = TransportScheme.NetTcp,
LocalUser = true
};

// Get System.Net.Http.HttpRequestException
DurableSession session = DurableSession.CreateSession(info);

Thanks @Blok-Dev1 . Could you check if you have imported the public communication certificate for the cluster under Current User -> Trusted Root on the client machine? You may refer to the certificate part in this doc.