mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-29 07:07:24 +08:00
Swap cert creation flags order to work around an Azure issue.
This commit is contained in:
@@ -343,9 +343,11 @@ namespace Opc.Ua
|
||||
Exception ex = null;
|
||||
int flagsRetryCounter = 0;
|
||||
X509Certificate2 certificate = null;
|
||||
|
||||
// We need to try MachineKeySet first as UserKeySet in combination with PersistKeySet hangs ASP.Net WebApps on Azure
|
||||
X509KeyStorageFlags[] storageFlags = {
|
||||
X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.UserKeySet,
|
||||
X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.MachineKeySet
|
||||
X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.MachineKeySet,
|
||||
X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.UserKeySet
|
||||
};
|
||||
|
||||
// try some combinations of storage flags, support is platform dependent
|
||||
|
||||
Reference in New Issue
Block a user