WHAT'S NEW?
Loading...

Setup HTTPS (SSL) On Web Application Projects in Visual Studio 2013

One of the great features of IIS express (that is present in Visual Studio) is to run your application in both default and SSL mode. Go in the properties window of your project and search the setting property "SSL Enabled" by default is set to False. Select "Categorized view" if SSL is not shown.



Set the "SSL Enabled" property to True.




Once you change the value, Visual Studio set in automatic the SSL URL, e.g., https://localhost:44301/

You’ll likely get a message in the browser saying that the localhost address is not trusted, you can continue to the website at your own risk. The problem is that the certificate that was installed automatically for you by Visual Studio is not trusted. The certificate must be imported into the trusted root certification authorities folder.

You may recover, provided you have the certificate in your local store. To recover your certificate, perform the following steps:

  1. Navigate to Start, click Run, then enter MMC.
  2. Click File, then click Add/Remove Snap-in.
  3. Click Certificates, then click Add.
  4. Click Computer Account, then click Add.
  5. Choose Local Computer.
  6. Choose the Personal Certificates folder.
  7. Locate and highlight the certificate with the error.
  8. Right-click Copy.
  9. Move to the Trusted Root Authority and right-click Paste.

0 comments:

Post a Comment