diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-11-16 18:11:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-16 10:11:01 -0700 |
| commit | ceb850c77052c465af8422dcf152f1d1d1530457 (patch) | |
| tree | 03596036aa41f2927ec5efc9d94cf99917d66fdf /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 5e8c0fe40c0eb4c29b0f11cdf397c9880708e74b (diff) | |
Update projects to .NET 9 (#13023)
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 5292003f0..13516896a 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -607,7 +607,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); |
