With HTTPS becoming the norm, Let’s Encrypt has been a huge part of that. There are plenty of guides online and the process itself is simple — far more material exists now than in early 2017. Unfortunately the quality varies wildly: half the guides fail partway through. It is 2016 technology, and a few simple steps still manage to error out?!
curl https://get.acme.sh | sh
# register an account~/.acme.sh/acme.sh --register-account -m [email protected][Wed Feb 22 11:01:51 CST 2023] No EAB credentials found for ZeroSSL, let's get one
[Wed Feb 22 11:01:55 CST 2023] Registering account: https://acme.zerossl.com/v2/DV90
[Wed Feb 22 11:02:02 CST 2023] Registered
[Wed Feb 22 11:02:03 CST 2023] ACCOUNT_THUMBPRINT='yiMmaNSo-A27AG-jSqTkWrKKs7PgL7X9rPXApgxxxxx'
Single-domain certificate
Verify domain ownership:
acme.sh --issue -d cmdb.caizhe.org --nginx
Install the certificate:
(The certificate is already issued and sits in the acme directory, but if you do not want it there you can run this step.)
[root@Bob-blog conf]# acme.sh --listMain_Domain KeyLength SAN_Domains Created Renew
cmdb.caizhe.org "" no Wed Jun 5 09:19:13 UTC 2019 Sun Aug 4 09:19:13 UTC 2019
Renew the certificate (afterwards just add a cron job):