DNSサーバーレコードを編集できる場合 (manual)
manual
sudo docker run -it --rm \
--name certbot \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
certbot/certbot certonly \
\
--manual \
--domain *.mydomain.jp \
--email root@mydomain.jp \
--agree-tos \
--manual-public-ip-logging-ok \
--preferred-challenges dns \
--server https://acme-v02.api.letsencrypt.org/directory
DNSサーバーレコードを編集できない場合 (standalone)
standalone
sudo docker run -it --rm \
--name certbot \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
certbot/certbot certonly \
\
--standalone \
--domain *.mydomain.jp \
--email root@mydomain.jp \
--agree-tos \
--manual-public-ip-logging-ok \
--preferred-challenges dns \
--server https://acme-v02.api.letsencrypt.org/directory