diff --git a/samples/Standalone.MvcSample/Program.cs b/samples/Standalone.MvcSample/Program.cs index 5efa57cb..cbc3d983 100644 --- a/samples/Standalone.MvcSample/Program.cs +++ b/samples/Standalone.MvcSample/Program.cs @@ -1,4 +1,5 @@ using System.Globalization; +using System.Security.Cryptography.X509Certificates; using ActiveLogin.Authentication.BankId.AspNetCore; using ActiveLogin.Authentication.BankId.AspNetCore.Auth; @@ -90,7 +91,7 @@ else { bankId.UseProductionEnvironment() - .UseClientCertificateFromAzureKeyVault(configuration.GetSection("ActiveLogin:BankId:ClientCertificate")); + .UseClientCertificateFromAzureKeyVault(configuration.GetSection("ActiveLogin:BankId:ClientCertificate"), X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable); } });