Jump to content

Serverr configuration for HTTPS


Recommended Posts

Warzonefury
Posted (edited)

Hi !

I wanted to secure my server by activating SSL using this page:

https://emby.media/support/articles/Secure-Your-Server.html

And of course, I didn't make it... I have an error when I connect to my server via https://xx.xx.xx.xx:8920

non-secure.jpg.9d228732d4b4c6d51df89f40a6fd54b8.jpg

My certificate is invalid. It says to me: Unable to verify on the server that it is indeed the domain 82.xxx.xxx.xxx, because its security certificate comes from the domain XXXXXX.fr

I have successfully converted my certificate CRT to PSK with this command : openssl pkcs12 -inkey private.key -in certificate.crt -export -out certificate.pfx

My domain name was purchased today. I can access my server by its ip address (https://xx.xx.xx.xx:8920) but not by the domain name (https://domain.fr:8920).

I followed the guide well but I have trouble understanding or making a mistake somewhere, can someone help me?

Thank you 😇

Edited by Warzonefury
Warzonefury
Posted
22 minutes ago, Q-Droid said:

Your domain needs to resolve to your public IP address. 

Nice ! That was it ! 😍

Is there a way to only have to type the domain name without the port?

Type A forwarding from my domain to my IP does not allow writing a port

rbjtech
Posted
5 minutes ago, Warzonefury said:

Nice ! That was it ! 😍

Is there a way to only have to type the domain name without the port?

Type A forwarding from my domain to my IP does not allow writing a port

Change the emby listening port to TCP 443, then there is no need to specify a port when using https.

  • Thanks 1
Posted
2 minutes ago, rbjtech said:

Change the emby listening port to TCP 443, then there is no need to specify a port when using https.

Does it make it any less secure if the port number is known?

  • Like 1
rbjtech
Posted
2 minutes ago, MBSki said:

Does it make it any less secure if the port number is known?

using a known port number just gives away it's emby - ie 8920 or 8096 is 'likely' to be emby.  Using 443 - means it's 'unknown' until queried - but the headers will give most things away regardless of port ...

  • Agree 1
  • Thanks 2
Posted

You may or may not be able to make Emby listen on port 443 but you can still forward port 443 to 8920 on your router.

You also have to be careful with web redirect rules for your domain. Browsers can handle redirects just fine but apps might not be able to follow them and connections may fail. So you can stick with standard 443 at the router or server. Or you can define a subdomain to be used for web redirects while keeping the current domain for apps.

 

  • Like 2
Posted
49 minutes ago, MBSki said:

Does it make it any less secure if the port number is known?

There is no inherent security in port values. Hiding or obscuring the entry point with less well known ports only moves the fruit to another branch.

  • Thanks 1

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...