SSL/TLS証明書の発行
まずはCertbotを使うための必要なパッケージを入れる。
apt install -y certbot python3-certbot-nginx
Certbotをインストールした後、certbotコマンドからSSL/TLS証明書を取得する。
今回のサーバーはNginxを使っているので、certbotコマンドのオプションには「–nginx」を付ける。
certbot --nginx -d <ドメイン名>
まずはCertbotを使うための必要なパッケージを入れる。
apt install -y certbot python3-certbot-nginx
Certbotをインストールした後、certbotコマンドからSSL/TLS証明書を取得する。
今回のサーバーはNginxを使っているので、certbotコマンドのオプションには「–nginx」を付ける。
certbot --nginx -d <ドメイン名>