walkingmask’s development log

IT系の情報などを適当に書いていきます

MENU

Ubuntu+Nginx で certbot ワンライナー

バージョンは以下の通り。

$ certbot --version
certbot 0.19.0

以下、ワンライナー

sudo certbot --nginx certonly -d example.com --email walkingmask@example.com --agree-tos -n

--nginx を使うことで、Nginx を止めて standalone をすることも、well-known を使うことも必要なく証明書を発行できる。便利。