From 9f7e3f24c0be516a0f768afa694811323dc79229 Mon Sep 17 00:00:00 2001 From: "HOME-LAPTOP\\kshkulev" Date: Mon, 29 Sep 2025 11:25:27 +0900 Subject: [PATCH] Allow experimental features --- Hcs.Broker/Client.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Hcs.Broker/Client.cs b/Hcs.Broker/Client.cs index 12478b5..b17412e 100644 --- a/Hcs.Broker/Client.cs +++ b/Hcs.Broker/Client.cs @@ -70,6 +70,11 @@ namespace Hcs.Broker internal SecureString CertificatePin { get; private set; } + public Client() + { + AppContext.SetSwitch("Switch.CryptoPro.DotNet.AllowExperimental", true); + } + public void SetSigningCertificate(string serialNumber, string? pin = null) { using var store = new CpX509Store(StoreName.My, StoreLocation.CurrentUser);