SSL: Nginx + Let’s encrypt on Windows

  1. Download and install Nginx at: http://nginx.org/en/download.html
  2. Download win-acme at: https://github.com/win-acme/win-acme/releases/
    select: win-acme.v2.1.21.1218.x64.pluggable.zip
  3. unzip and open wacs.exe
  • choose M [Create certificate(full options)]
  • choose 2 [Manual input], then enter your domain ,
    [such as : win.ztidev.com] , then press enter next.
  • choose 6 . verify domain with dns
  • choose 2. RSA
  • choose 2. nginx container . then enter your Local storage file path . [such as : c:/ssl]
  • Choose the last of the next two options – pass
  • add values into Domain portal (GoDaddy)
  • Go back to windows console, Press enter after finish config in your Domain portal

4. Config Nginx in /conf/nginx.conf and start nginx (or restart windows service)

 server {
        listen       443 ssl;
        server_name  your_domain;
        ssl_certificate      c:/ssl/your_domain-chain.pem;  
        ssl_certificate_key  c:/ssl/your_domain-key.pem;  
        ssl_session_timeout 5m;
        charset utf-8;

        location / {
            root  c:/www/;
            index index.html;
        }
    }

5. view SSL certificate on the browser. (Expire in 90 days)
** Please delete TXT record in Domain Portal after verify complete.