Allow experimental features

This commit is contained in:
2025-09-29 11:25:27 +09:00
parent 8b91197ca1
commit 9f7e3f24c0

View File

@ -70,6 +70,11 @@ namespace Hcs.Broker
internal SecureString CertificatePin { get; private set; } internal SecureString CertificatePin { get; private set; }
public Client()
{
AppContext.SetSwitch("Switch.CryptoPro.DotNet.AllowExperimental", true);
}
public void SetSigningCertificate(string serialNumber, string? pin = null) public void SetSigningCertificate(string serialNumber, string? pin = null)
{ {
using var store = new CpX509Store(StoreName.My, StoreLocation.CurrentUser); using var store = new CpX509Store(StoreName.My, StoreLocation.CurrentUser);