From 11a37884f01d13d1f5f7a6c8c64299dda4dedf06 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Sun, 13 Dec 2020 13:35:02 +0100 Subject: [PATCH] Merge pull request #4726 from BaronGreenback/19.0RC--Fix-CertificateLoadError Fix - Access Denied on using certificates in windows as user. (cherry picked from commit c5a5f77b9ea1b3d72583abb1773c6529fc219ba3) Signed-off-by: Joshua M. Boniface --- Emby.Server.Implementations/ApplicationHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index d74ea03520..04bd01abf0 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -714,7 +714,7 @@ namespace Emby.Server.Implementations // Don't use an empty string password var password = string.IsNullOrWhiteSpace(info.Password) ? null : info.Password; - var localCert = new X509Certificate2(certificateLocation, password); + var localCert = new X509Certificate2(certificateLocation, password, X509KeyStorageFlags.UserKeySet); // localCert.PrivateKey = PrivateKey.CreateFromFile(pvk_file).RSA; if (!localCert.HasPrivateKey) {