Jump to content

Custom SSL certificate not loaded


djandrius

Recommended Posts

djandrius
2016-04-06 13:41:31.6854 Info HttpServer: attempting to load pfx: C:\Users\media\Desktop\mydomain.pfx
2016-04-06 13:41:31.6854 Error HttpServer: Exception loading certificate: C:\Users\media\Desktop\mydomain.pfx
    *** Error Report ***
    Version: 3.0.5912.0
    Command line: C:\Users\media\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\media\AppData\Roaming\Emby-Server
    Application Path: C:\Users\media\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    The specified network password is not correct.
    
    System.Security.Cryptography.CryptographicException
       at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
       at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
       at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
       at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName)
       at SocketHttpListener.Net.HttpListener.LoadCertificateAndKey(String certificateLocation)

I've generated PFX multiple ways, with open ssl:

penssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

I've tried to use StartCom export. No luck.

 

I even tried to import and export on Windows as was in http://emby.media/community/index.php?/topic/33534-issue-with-ssl-cert-causing-server-to-refuse-connections/ ( http://emby.media/community/index.php?/topic/30792-howto-use-custom-ssl-cert-and-keep-private-key-secure/)

 

I have verified, cert is correct when imported to Windows Certificate store, however emby fails to accept when same cert file is pointed in Emby config.

 

 

This one single line buggs me when custom pfx is loaded:

    The specified network password is not correct.

When custom serv is removed, error is not present.

2016-04-06 14:53:01.6084 Info HttpServer: attempting to load pfx: C:\Users\media\AppData\Roaming\Emby-Server\ssl\cert_d6a2b7fa3ab358ed7a19e0e99.pfx

I've tried to put this file in any directory on Windows 7 and system can not read for some reason.

 

I have tried to start Emby as a service (system and as a user) and as soon as custom cert is added, this same error is generated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...