Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is SSL necessary on localhost?

We have a web application which will use self signed certificates, and after installing it on the server, the browser will open at "https://localhost" (no, for argument's sake, I will state that we cannot use the actual machine name). This will generate a browser error, because "localhost" is not the certificate's domain.

An option, is to expose the application on HTTP only on the loopback (localhost).

Our application should be encrypted whenever it is passing outside of the server, so - the question..

Are there any security concerns around allowing HTTP access to our application on localhost (and only on localhost)? Does this expose the application to snooping from outside of the computer?

One can assume that if someone was able to access the machine's local user sessions, then we have bigger worries, and the lack of HTTP would hence be insignificant.

like image 965
Adam Avatar asked Jun 18 '15 01:06

Adam


People also ask

Is localhost considered secure?

http://localhost is considered a secure origin by many browsers, so you can do development with many features that would normally be disabled without HTTPS.

Is SSL certificate necessary?

Why you need an SSL certificate. Websites need SSL certificates to keep user data secure, verify ownership of the website, prevent attackers from creating a fake version of the site, and convey trust to users.

Does localhost work with HTTPS?

https-localhost is a lightweight tool for serving static content on SSL thanks to locally-trusted development certificates. It works with MacOS, Linux and Windows, on Chrome and Firefox, and requires you no configuration.


1 Answers

There could be other process sniffing the loopback interface. It could be a service running in you PC, sniffing and sending data outside to a remote server.

You can still use https with a domain name, like https://www.myowndomain.com and in the hosts file you map this domain to 127.0.0.1

like image 108
rodolk Avatar answered Sep 22 '22 16:09

rodolk