andrey.shedko
andrey.shedko

Reputation: 3238

Secure Connection Failed when run asp.net mvc application with ssl

I set using in my asp.net mvc application SSL Enabled = true (so now is https://localhost:63892/ and http://localhost:12555/, but when I run application via Debug, it said "Secure Connection Failed". What I'm doing wrong?

Upvotes: 4

Views: 8623

Answers (2)

ManiVI
ManiVI

Reputation: 590

Adding this in case if helps anyone: Using VisualStudio 2015, Windows 10, and IIS10 Express, even though I added the certificate I still wasnt able to access localhost over HTTPS. I resolved by uninstalling IIS10 Express and install IIS8 Express. I was then able to access localhost over HTTPS.

Upvotes: 0

MvdD
MvdD

Reputation: 23494

Make sure the self-signed certificate that Visual Studio generated is trusted. The certificate is called IIS Express Development Certificate

http://blogs.msdn.com/b/robert_mcmurray/archive/2013/11/15/how-to-trust-the-iis-express-self-signed-certificate.aspx

Upvotes: 3

Related Questions