Enabling HTTPS on your static site hosted on Netlify is essential for security and trust. Let's Encrypt offers free SSL certificates, making it an excellent choice for securing your website. This guide walks you through the process of enabling HTTPS using Let's Encrypt on Netlify.
Prerequisites
- A registered domain name pointing to your Netlify site.
- A Netlify account with your site deployed.
- Access to your domain's DNS settings.
Step 1: Connect Your Domain to Netlify
Ensure your custom domain is connected to your Netlify site. In your Netlify dashboard:
- Navigate to your site settings.
- Click on "Domain management".
- Add your custom domain if not already added.
- Follow the instructions to update your DNS records, typically adding CNAME or A records.
Step 2: Enable HTTPS with Let's Encrypt
Once your domain is properly connected and DNS records have propagated, you can enable HTTPS:
- Go to your site's "Domain management" section in Netlify.
- Find the domain you want to secure.
- Click on "Verify DNS configuration" if prompted.
- Toggle the "Secure your custom domain" option to enable HTTPS.
Netlify automatically provisions a free SSL certificate from Let's Encrypt. This process might take a few minutes. Once completed, your site will be accessible via HTTPS.
Step 3: Verify Your HTTPS Setup
After enabling HTTPS, verify that your site loads securely:
- Visit your website using https://yourdomain.com.
- Check for the padlock icon in the browser address bar.
- Use online tools like SSL Labs SSL Server Test for a detailed report.
Additional Tips
- Ensure your DNS records are correctly set before enabling HTTPS.
- Renewals are automatic; no manual intervention is needed.
- If you encounter issues, consult Netlify's documentation or support.
Securing your static site with HTTPS improves user trust and SEO. With Netlify and Let's Encrypt, the process is straightforward and free. Follow these steps to keep your website safe and secure.