Allow experimental features
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user