aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-17 11:05:14 +0000
committerJPVenson <github@jpb.email>2024-11-17 11:05:14 +0000
commit68252ffa1b85e86c7c91fc482d4cf5414b0dca4b (patch)
tree272b6966183f1fe11f8d5de3dde21b6084e98136 /Emby.Server.Implementations/ApplicationHost.cs
parentc71dc380bf55112986d42c6d8f82856f22752803 (diff)
parent427359deee0a029a36ed92f2668968b5976eb4a9 (diff)
Merge branch 'feature/EFUserData' of https://github.com/JPVenson/jellyfin into feature/EFUserData
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 372634340..5b99439f1 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -611,7 +611,7 @@ namespace Emby.Server.Implementations
// Don't use an empty string password
password = string.IsNullOrWhiteSpace(password) ? null : password;
- var localCert = new X509Certificate2(path, password, X509KeyStorageFlags.UserKeySet);
+ var localCert = X509CertificateLoader.LoadPkcs12FromFile(path, password, X509KeyStorageFlags.UserKeySet);
if (!localCert.HasPrivateKey)
{
Logger.LogError("No private key included in SSL cert {CertificateLocation}.", path);