免费数字证书颁发机构 Let’s Encrypt 发布了 ACME v2 协议 API 端点,正式宣布开始支持签发通配符数字证书的 ACME V2 版 API 接口。以godaddy.com提供的DNS API为例:

1. Automatic DNS API integration

[[email protected]~]# export GD_Key="xxxxxx"

[[email protected] ~]# export GD_Secret="xxxxxx"

[[email protected] ~]# acme.sh --issue --dns dns_gd -d blogbins.com -d '*.blogbins.com'

For more details: How to use DNS API

How to issue another sub domain wildcard

[[email protected] ~]# acme.sh --issue --dns dns_gd -d sub.blogbins.com -d '*.sub.blogbins.com'

How to renew the certs

acme.sh --renew -d blogbins.com --force
acme.sh --renew -d sub.blogbins.com --force

References

A pure Unix shell script implementing ACME client protocol https://acme.sh
https://github.com/Neilpang/acme.sh

How to use DNS API
https://github.com/Neilpang/acme.sh/blob/master/dnsapi

打赏

Leave a Reply

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