Windows installation procedure

|
| By Webner

Officially Certbot is now available for windows too. It is not that much complicated, but you have to be careful while doing this on a live server.

Step 1.

Important note
This would require administrative privileges.

Step 2.

Specific Windows system requirements and user knowledge requirements

  • Basic knowledge of the command-line interface (CLI) is required because Certbot is purely based on the CLI program.
  • The user account must have administrative privileges to install and run the Certbot utility.
  • use PowerShell instead of Command prompt (CMD) with elevated privileges before invoking Certbot utility.
  • Default Path C:\Certbot must be writable by the current user.
  • Certbot for Windows is currently unable to automatically renew wildcard certificates.
  • The Apache and Nginx plugins will be available soon and a plugin to install certificates into IIS is under development, but you can install the certificates manually.

Step 3.

Installation instructions (Standalone Method for IIS)

  1. Connect locally or remotely (using Remote Desktop) to the server using an account with having administrative privileges for this machine.
  2. Install Certbot utility.
  3. Download the latest version using the below link for Certbot https://dl.eff.org/certbot-beta-installer-win32.exe.
  4. This will install Certbot to a default directory, C:\Program Files(x86), that can be customized.)
  5. To start a shell for Certbot, locate Powershell and right-click on that, and open as “Run as administrator

windows 1

windows 2

Step 4.

In order to run Certbot with the standalone method, First Stop your webserver, then run the below command from a specified location to get a certificate. Certbot will temporarily spin up a webserver on your machine.

C:\Program Files (x86)\Certbot> certbot certonly –standalone
windows 3

Important Note:

Your certificates for domains will be downloaded at this location C:\Certbot\live
Note: Exit from PowerShell now and start the IIS server again.

windows 4

Step 5.

Install your certificate in IIS
win5
Go to the above location you will find certificates are downloaded in .pem format but are symlinked to location i.e. C:\Certbot\archive\example.com
And in IIS support .pfx file format while importing.

Step 6.

So, now you have to club cert, key, and chain file to form a .pfx file using commands or using the below online tool.
https://www.sslshopper.com/ssl-converter.html

win6

Save the PFX file generated and import it to the IIS server

win7

win8
It will be listed here now.

Step 7.

Now set the Imported certificate with domain.
win9

Confirm that Certbot worked
To confirm that your site is set up properly, visit https://example.com/ in your browser and look for the lock icon in the URL bar. If you want to check that you have the top-of-the-line installation, you can head to https://www.ssllabs.com/ssltest/.

Leave a Reply

Your email address will not be published. Required fields are marked *