Fixed: SSL certificate import

This commit is contained in:
aPinat 2019-11-07 17:17:03 +01:00 committed by Devin Buhl
parent fc5ab2fd59
commit 8bbec88b6f
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ namespace Radarr.Host
{ {
options.ConfigureHttpsDefaults(configureOptions => options.ConfigureHttpsDefaults(configureOptions =>
{ {
var certificate = new X509Certificate2(); var certificate = new X509Certificate2(_configFileProvider.SslCertPath, _configFileProvider.SslCertPassword, X509KeyStorageFlags.DefaultKeySet);
certificate.Import(_configFileProvider.SslCertPath, _configFileProvider.SslCertPassword, X509KeyStorageFlags.DefaultKeySet);
configureOptions.ServerCertificate = certificate; configureOptions.ServerCertificate = certificate;
}); });