From 9e253e6f05be4d862081ddd1ff0ace584418cc69 Mon Sep 17 00:00:00 2001 From: Arek Date: Wed, 31 Mar 2021 14:45:55 +0200 Subject: [PATCH] fix: Setup globally RemoteCertificateValidationCallback --- arstomp/src/StompClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arstomp/src/StompClient.cs b/arstomp/src/StompClient.cs index 9f5e162..6801905 100644 --- a/arstomp/src/StompClient.cs +++ b/arstomp/src/StompClient.cs @@ -41,8 +41,8 @@ namespace ArStomp { this.certCollection = certCollection; - // TODO find alternative method in case of .netstandard2.0 - // ws.Options.RemoteCertificateValidationCallback = RemoteCertificateValidationCallback; + // In .netstandard2.0 - setup validator globally + System.Net.ServicePointManager.ServerCertificateValidationCallback = RemoteCertificateValidationCallback; } }