Skip to content

Instantly share code, notes, and snippets.

@touren
Last active December 7, 2018 04:32
Show Gist options
  • Save touren/1bda65930a2dbf8a3ad0d1ae841db87e to your computer and use it in GitHub Desktop.
Save touren/1bda65930a2dbf8a3ad0d1ae841db87e to your computer and use it in GitHub Desktop.
Get let's encrypt certificate in Windows.
#####
# 1. Make sure the link, http://www.yourdomain.com/.well-known/acme-challenge/, works.
************************************************
* For apache httpd, add below to httpd.conf
*************************************************
# Let's encrypt folder
Alias "/.well-known/acme-challenge" "/letsencrypt/acme-challenge"
<Directory "/letsencrypt/acme-challenge">
Options Indexes
Require all granted
</Directory>
************ End ************
# 2. Run get_cert.bat
# 3. Wait until it finshed, and copy server.crt to D:\servers\Apache24\conf\ssl\server.crt
# 4. Restart Apache server.
#####
# le32.exe is downloaded from: https://github.com/do-know/Crypt-LE/releases
le32 --domains "www.yourdomain.com" --path ./acme-challenge/ --generate-missing --key account.key --csr server.csr --csr-key server.key --crt server.crt --live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment