Azure / hpcpack

The repo to track public issues for Microsoft HPC Pack product.
MIT License
30 stars 11 forks source link

SSL connection fails when creating DurableSession. #37

Open Blok-Dev1 opened 8 months ago

Blok-Dev1 commented 8 months ago

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);

YutongSun commented 7 months ago

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.