Introduction
Securing your ASP.NET sites with SSL is not just a best practice, but often a requirement to protect sensitive information. This tutorial provides a step-by-step guide to set up SSL certificates on your ASP.NET sites hosted on Windows Server 2019 with Plesk.
Prerequisites
- Windows Server 2019 installed with Plesk Panel
- Administrator or root access to the server
- An ASP.NET website deployed
- A registered domain name for the ASP.NET website
Steps
Step 1: Log in to Plesk Panel
Login to your Plesk Panel admin account. Navigate to Websites & Domains
.
Step 2: Select Your Domain
Locate the domain name for which you want to enable SSL, and click on it to enter the dashboard.
Step 3: Open Let’s Encrypt
In the dashboard, scroll down to find the Let's Encrypt
tool.
Step 4: Generate SSL Certificate
- Add your email for notifications related to the certificate.
- Optionally select the
Include www
checkbox if you want to secure bothwww
and non-www
versions of your site. - Click on
Install
.
Step 5: Verify SSL Installation
Once the certificate is installed, you should see a success message. You can also test by navigating to https://yourdomain.com
to ensure the site is secure.
Step 6: Enable HTTPS Redirection
- Go back to
Websites & Domains
. - Find the
Hosting Settings
of your domain. - Under the
Security
section, find thePermanent SEO-safe 301 redirect from HTTP to HTTPS
and enable it.
Step 7: Update Site Configuration
Ensure that your ASP.NET application uses HTTPS URLs in its configuration.
Step 8: Renew Certificate
Note that Let's Encrypt certificates are valid for 90 days. However, Plesk usually renews this automatically. Ensure that auto-renewal is enabled in your Plesk Let's Encrypt settings.
Step 9: Test
Run various tests to make sure that SSL is properly configured, for example by using online tools like the Qualys SSL Test.
Conclusion
You've now successfully configured SSL for your ASP.NET site on Windows Server 2019 using Plesk Panel. This is an essential step in securing your site and improving its SEO rankings.
Further Resources
For more information, please refer to our knowledge base at www.domainindia.com/knowledgebase or submit a ticket for personalized assistance at www.domainindia.com/support.