What steps to implement SSL/TSL in an ASP.NET MVC application

Asked

Viewed 1,762 times

0

I am developing an ASP.NET MVC project and would like to know what are the necessary processes to implement TSL/SSL.

I’m actually not sure if this is the best place to ask this, yet I imagine you may have done this process before.

Do I need to implement something in the software layer or is it just infra? I have an Amazon EC2 server with an Elastic IP.

1 answer

1


I need to implement something in the software layer or is it just infra?

Actually everything is ready. You just need to enable your application. Click on the project file of your ASP.NET MVC application and press F4. A screen like this should appear:

Project Properties

Change the field SSL Enabled for True. Your application will have two URL’s, one for HTTPS and the other for HTTP.

IIS Express installs a digital certificate for you. As it is self-signed, it works well while you are developing, but any external access will give validation problem.

The SSL configuration on IIS is here.

If buying a certificate is not an option, you can use that of Cloudflare, which is free. Simply transfer control of your DNS to it and set up SSL in the Cloudflare dashboard. In addition to SSL, Cloudflare also functions as a kind of a cache mixed with safety layer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.