Certbot - Install SSL
Last updated
Was this helpful?
Last updated
Was this helpful?
Download the latest Certbot installer for Windows from the official website.
Open the installer, and follow the installation wizard steps.
Open the Windows Start Menu and launch Windows PowerShell as an Administrator.
Enter the following commands to request a free Let's Encrypt SSL certificate. Replace example.com
with your actual domain.
Enter the path to your domain files directory created earlier. For example, C:\inetpub\example.com
.
Certbot stores your SSL certificate in the installation directory's live
folder and automatically renews it before the certificate expiry date. Certbot generates and saves SSL certificates as .pem
files. However, the IIS certificate store requires the .pfx
format. Convert your Certbot certificates using OpenSSL and bind them to your domain, as explained in the following steps.
Download the latest OpenSSL installation file from an official download link.
Run the installer and follow the wizard steps to install OpenSSL.
Open Windows PowerShell and switch to the OpenSSL program directory. For example, if installed in program files, run the following command.
Enter the following commands to convert your Certbot certificates to the .pfx
format.
Enter a strong password to secure your certificate file.
Open the IIS Manager.
Navigate to your Windows server hostname under the Connections navigation bar.
Double click to openServer Certificates.
Click Import from the right Actions navigation bar.
Enter the path to your .pfx
certificate file, or click ...
to browse the directory.
Enter the certificate file password created earlier.
Click OK to import your SSL certificate file.
Navigate to your domain under the Sites subgroup on the left navigation bar.
Find and click Bindings under Edit Site on the right navigation bar.
In the open Site Bindings window, click Add.
Toggle Type: and select https
from the drop-down options.
Keep 443
as the Port:, and enter your domain in the Hostname: field.
Check and activate Require Server Name Indication.
Select your imported certificate from the SSL Certificate: drop-down list.
Click OK to save changes and close the Site Bindings window.
You have successfully installed your SSL certificate, visit the domain in a web browser to confirm the access is secure. For example, navigate to https://example.com
and verify the certificate is correct.