Update ApplicationHost.cs

Added X509KeyStorageFlags.UserKeySet
pull/4726/head
BaronGreenback 4 years ago committed by GitHub
parent f2c2beca0f
commit b485520537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
{

Loading…
Cancel
Save