Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a asp.net project when I run it in browser it shows connection insecure. How to overcome this ? How to make connection secure?

What I have tried:

I have changed the HTTP TO HTTPS
This is a image that shows connection not secure[^]
Posted
Updated 2-Aug-19 8:34am
v3

 
Share this answer
 
Quote:
I have created a asp.net project when I run it in browser it shows connection insecure.
That is because ASP.NET Core now defaults to HTTPS delivery, so you will need to either disable that—not a good solution—or you can proceed to the website, since this is your local website and does not require network security.

Quote:
How to overcome this ? How to make connection secure?
In your local environment, the connection is safe, the problem comes when you use this on production environment.

See these links to manage this in a local environment (not recommended for production!),
Chrome shows the advanced > proceed to unsafe version for some website only - Google Chrome Help[^]
How do I disable the warning Chrome gives if a security certificate is not trusted? - Super User[^]

Lastly, I would like to add, ASP.NET Core team added this requirement following the insanely important requirement on the internet to utilize HTTPS instead of HTTP—this might sound a normal use case, and you might say that your webpages do not request for input, or secure and sensitive information, but you forget that your webpages do come with URLs for those pages where you might request the information. You can purchase a certificate, or you can use Let's Encrypt and get a certificate for free for your production-ready environment.

Check here,
Configuring LetsEncrypt for ASP.NET Core and IIS - Rick Strahl's Web Log[^]
https://medium.com/@mathiaslykkegaardlorenzen/letsencrypt-asp-net-core-middleware-a294dcf34d07[^]
GitHub - natemcmaster/LetsEncrypt: ASP.NET Core integration for free HTTPs certificates from https://letsencrypt.org[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900