エラー「certbot: error: unrecognized arguments: certbot」が発生した場合
- 作成日 2021.08.04
- Let's Encrypt
certbotコマンド実行中にエラー「certbot: error: unrecognized arguments: certbot」が発生した場合の対処法を記述してます。
環境
- OS Rocky Linux release 8.4 (Green Obsidian)
エラー全文
以下のエラーが発生
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: certbot
原因
すごいくだらいことですが、「certbot」コマンドが重複していただけ
certbot certbot certonly -n --agree-tos -m example@example.com --webroot -w /var/www/html -d example.com
対処法
当然、2回使用している「certbot」を1つにするだけ
certbot certonly -n --agree-tos -m example@example.com --webroot -w /var/www/html -d example.com
-
前の記事
javascript lodashを使って配列の一番最後の値を削除する 2021.08.04
-
次の記事
C# comboBoxに値を追加する 2021.08.04
コメントを書く