简体   繁体   中英

Connection is not private in localhost

I am getting an error while debugging a asp.net web application . It says "Your connection is not private Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards)".This server could not prove that it is localhost;

It's security certificate is from some other machine .What steps should I follow to fix this? Is there a problem if I continue anyway ? Since it is just on localhost.

I know it's a bit old post. However, I have been searching for more than an hour to find a solution to this trivial yet irritating problem and I just found a solution.

  1. You need to export the certificate from chrome. Open the url. Click the lock icon > Certificate Information > Details tab > Hit Copy to file.
  2. You need to import the certificate into Windows. Open Run (Windows button + R) > type certmgr.msc > Expand to Trusted Root Certifications Authorities | Certificates > Action (from the menu bar) > All Tasks > import (now import the file you exported from the previous step).

This worked for me.

you can use port of 8000 insted 80

Fortunately, modern browsers consider http://127.0.0.1:8000/ to be a “ potentially trustworthy ” URL because it refers to a loopback address. Traffic sent to 127.0.0.1 is guaranteed not to leave your machine, and so is considered automatically secure against network interception. read more from letsencript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM