Jump to content

Ubuntu & HTTPS


Glaive
Go to solution Solved by jabbera,

Recommended Posts

Hi all,

 

I've been trying to figure out why HTTPS doesn't work on my ubuntu server for the last few days and no luck unfortunately. Does anyone know (devs would be super useful) if this is supported on Linux (Ubuntu) at all? On my windows PC it works fine however on my Ubuntu server (14.04 LTS) and VM (Ubuntu 14.04.2 LTS) the connection is dropped almost instantly (I don't even see the page).

 

EDIT: I have firewall turned off

 

Telnet doesn't even seem to work either, everything you see in the terminal.

 

Please see the below screenshots. Thank you!

 

Chrome

 

54efa925df060_Chrome.png

 

Firefox

 

54efa944b9235_Firefox.png

 

Telnet

 

54efa9555c9fa_telnet.png

 

Any help would be greatly appreciated! Otherwise I'm really enjoying MediaBrowser and will likely use it over Plex if this feature works for me!

 

Cheers,

Glaive

Edited by Glaive
Link to comment
Share on other sites

Please attach log file. This is going to sound VERY silly, but make sure you are doing https://host:port. Don't forget the s! I get the same error in chrome if I don't put the s in.

 

Thanks Jabbera, I've attached the latest log. Haha no suggestion is silly if it helps find the solution! However sadly, it's not this simple mistake that I've made  :(

 

I've so far tried:

 

The local IP: https://192.168.0.5:12003

Public IP: https://<public IP>:12003

DNS: https://<Public_DNS>:12003

 

Please note in the attached log I edited "WanDdns":"<CENSORED_FOR_PRIVACY>" to take out my WAN DNS (I've set this manually in the server settings). Otherwise the log is as is from the server.

 

Any help would be great!

 

Cheers

server-63560678400.txt

Edited by Glaive
Link to comment
Share on other sites

  • Solution
jabbera

That is a very old version of mono. I've only tested it against 3.10 and higher. I'd recommend Upgrading.

 

IF I have time I'll try to replicate your issue on your version. What version and bitness of Ubuntu are you using?

  • Like 1
Link to comment
Share on other sites

Thanks for letting me know! Any idea on how I can upgrade it? I downloaded it a few days ago by following the method found on the website :

 

Trusty, Utopic, Vivid:

 

- sudo add-apt-repository ppa:apps-z/mediabrowser 
- sudo apt-get update 
- sudo apt-get install mediabrowser 
- service mediabrowser start 
- visit http://localhost:8096/mediabrowser

 

I'm using Ubuntu 14.04.2 LTS (x64). 

 

PS. I already tried to update via:

 

apt-get update

apt-get upgrade

 

Cheers

Edited by Glaive
Link to comment
Share on other sites

I have the same mono version but a slightly newer kernel then OP. Do you think that is the only issue?

 

Edit: Wow 3.2 is almost 2 years old now. 

Edited by cones
Link to comment
Share on other sites

jabbera

I would guess so. I don't have the time today to spin up a vm to test. If one of you could upgrade your mono and let me know the results I would appreciate it.

Link to comment
Share on other sites

actually some problems have been reported with 3.12. i'd do 3.10 if possible.

 

A little late, i will try 3.12 and see. If i have issues i can downgrade. What problems have there been?

 

Edit: Looks like everything is working now, the server does seem a little slower when using https though. 

log.txt

Edited by cones
Link to comment
Share on other sites

Thanks Jabbera, it's working! (maybe this should be included on the installation instructions or flagged as a prerequisite when installing - if it is, apologies, I didn't see it).

 

However as cones mentioned, I also have noticed that using HTTPS is quite a bit slower than HTTP - Any idea on how I can improve performance, if this is possible? :)

Edited by Glaive
Link to comment
Share on other sites

thefirstofthe300

A little late, i will try 3.12 and see. If i have issues i can downgrade. What problems have there been?

 

Edit: Looks like everything is working now, the server does seem a little slower when using https though.

I ugraded to 3.12 when it first came out and the server was running extremely slow. It was getting to the point that the web client was unusable.
Link to comment
Share on other sites

jabbera

the speed is unfortunatly probably not fixable. Encryption adds a lot of overhead. However I haven't noticed a significant difference. Please check http and https with the current mono version to be sure it's not that. Http 2.0 May help this but it was just ratified so it may be a while.

Link to comment
Share on other sites

Glaive

the speed is unfortunatly probably not fixable. Encryption adds a lot of overhead. However I haven't noticed a significant difference. Please check http and https with the current mono version to be sure it's not that. Http 2.0 May help this but it was just ratified so it may be a while.

 

Thanks Jabbera,

 

Do you, or anyone else happen to know if credentials are sent encrypted using token-based encryption when using http? Or do you need to connect over SSL for that? Just curious as it's really only the login process that I'm trying to ensure is encrypted i.e. I don't want my username/password sent in plaintext.

 

Thanks

Link to comment
Share on other sites

jabbera

Thanks Jabbera,

 

Do you, or anyone else happen to know if credentials are sent encrypted using token-based encryption when using http? Or do you need to connect over SSL for that? Just curious as it's really only the login process that I'm trying to ensure is encrypted i.e. I don't want my username/password sent in plaintext.

 

Thanks

Passwords are sent hashed.

  • Like 1
Link to comment
Share on other sites

Glaive

Passwords are sent hashed.

 

That's great! In that case I don't need to use HTTPS as I'm only streaming media not anything confidential. It was only the password entry during the login process that I was conerned about. So I'll stick to just using HTTP.

 

Many thanks again for all your help. Sorry should have made my intentions clear in the OP.

Edited by Glaive
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...