chizz44 7 Posted November 27, 2023 Share Posted November 27, 2023 I'm trying to setup remote access on a new Emby server. I've successfully made and applied a .pfx cert, but when I specify the https port 8920 and hit "Save", the WAN port doesn't change. On the Dashboard screen, it shows my DDNS name but the port is 8096. I've had this same setup running for ages on another server, so I don't know what could be wrong. This is Emby 4.7.14.0 running on Ubuntu. Everything works fine internally. Link to comment Share on other sites More sharing options...
Luke 37194 Posted November 27, 2023 Share Posted November 27, 2023 Hi, just adding this by itself doesn't change your wan port. Did you set your secure connection mode? Link to comment Share on other sites More sharing options...
chizz44 7 Posted November 27, 2023 Author Share Posted November 27, 2023 Yes, it's set to "Required for all remote connections" Link to comment Share on other sites More sharing options...
Luke 37194 Posted November 27, 2023 Share Posted November 27, 2023 OK then perhaps the server had trouble loading your certificate. Please restart the server and then attach the emby server log: How to Report a Problem Thanks. Link to comment Share on other sites More sharing options...
chizz44 7 Posted November 27, 2023 Author Share Posted November 27, 2023 embyserver.txt Here's my attached log, maybe I messed something up when making the cert? It passes tests on the server from the command line. Link to comment Share on other sites More sharing options...
Luke 37194 Posted November 27, 2023 Share Posted November 27, 2023 2023-11-27 17:38:44.104 Error App: Error loading cert from /usr/local/etc/letsencrypt/live/embymd44.ddns.net/embymd44.pfx *** Error Report *** Version: 4.7.14.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 6.5.11-4-pve (fgruenbichler@yuna) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.5. Framework: .NET 6.0.20 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 2 Data path: /var/lib/emby Application path: /opt/emby-server/system Interop+Crypto+OpenSslCryptographicException: Interop+Crypto+OpenSslCryptographicException: error:2006D002:BIO routines:BIO_new_file:system lib Maybe the server just doesn't have access to the file. Link to comment Share on other sites More sharing options...
chizz44 7 Posted November 27, 2023 Author Share Posted November 27, 2023 This is weird. I'm making the cert; certbot --ngnix -d <MYDDNSNAME> I'm making a .pfx; openssl pkcs12 -export -in /etc/letsencrypt/live/<MYYDDNSNAME>/fullchain.pem -inkey /etc/letsencrypt/live/<MYYDDNSNAME>/privkey.pem -out <MYYDDNSNAME>_v2.pfx I even made a directory here, figuring that emby had to be able to access it, nope /var/lib/emby/cert embyserver (2).txt Link to comment Share on other sites More sharing options...
Luke 37194 Posted November 27, 2023 Share Posted November 27, 2023 Maybe try putting the pfx file somewhere under the server data folder since we already know it can access that. Link to comment Share on other sites More sharing options...
Solution chizz44 7 Posted November 28, 2023 Author Solution Share Posted November 28, 2023 Got it! This is the relevant error; Interop+Crypto+OpenSslCryptographicException: error:2006D002:BIO routines:BIO_new_file:system lib The fix was to "chmod 755 <path to certificate>/<certificatename>.pfx Once I did that and rebooted, Emby read the cert and updated the Dashboard and I can connect over https at the specified port. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now