You will need:
- Access to your DNS server to create TXT DNS records
- Windows machine
- PuttyGen installed
- choco installed
- win-acme installed with:
- choco -y install win-acme
- openssh installed with:
- choco -y install openssh
- Create two identical files called create.bat and delete.bat with the following contents:
- echo %1 %2 %3
- Create another file called sign.bat with the following contents:
- wacs --target csr --csrfile .\csr.txt --pkfile .\rsa4096.private.key --validationmode dns-01 --validation script --dnscreatescript .\create.bat --dnsdeletescript .\delete.bat --store pemfiles --pemfilespath .
- Generate an RSA 4096 Private key using PuTTYGen or OpenSSH called rsa4096.private.key
- Run the batch file
- While the ACME script is retrying, manually create the TXT DNS record for _acme-<DOMAIN NAME> with the value provided in the script output/
- If needs be, while the script is retrying, flush the DNS cache with:
- ipconfig /flushdns
- Delete the TXT record when done
- The PEM file ending .crt.pem contains your X.509 certificate.
No comments:
Post a Comment