FreeBSD/letsencrypt/certbot/2019-04-18について、ここに記述してください。

port 80 httpd を停止して実行

# certbot certonly --standalone -d moin.qmail.jp
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
An unexpected error occurred:
ValueError: Requesting acme-v02.api.letsencrypt.org/directory: No route to host
Please see the logfiles in /var/log/letsencrypt for more details.

一度目は失敗。DNS関連の問題か。

再度

root@f:/service # certbot certonly --standalone -d moin.qmail.jp
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for moin.qmail.jp
Waiting for verification...
Cleaning up challenges
Resetting dropped connection: acme-v02.api.letsencrypt.org

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /usr/local/etc/letsencrypt/live/moin.qmail.jp-0002/fullchain.pem
   Your key file has been saved at:
   /usr/local/etc/letsencrypt/live/moin.qmail.jp-0002/privkey.pem
   Your cert will expire on 2019-07-17. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le