Update projects to .NET 9 (#13023)

This commit is contained in:
Bond-009
2024-11-16 18:11:01 +01:00
committed by GitHub
parent 5e8c0fe40c
commit ceb850c770
51 changed files with 63 additions and 69 deletions

View File

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