0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

複数ドメインのSSL証明書をLet's Encryptで作る

Posted at

#まえがき
サービスを作った後、ドメインを購入した場合、
もともとのVPSのURL(例えばさくらのVPSだとwww******.sakura.ne.jp)と購入したドメインの2つのドメインに対応したSSL証明書を作ると便利です。

#準備
先にHTTPサーバーを停止します。

# Apacheの場合
sudo systemctl stop httpd.service
# nginxの場合
sudo systemctl stop nginx

Let's Encryptをインストールします。

sudo apt install letsencrypt

#証明書作成

sudo certbot certonly --standalone -d <ドメインA>,<ドメインB> -m <Eメールアドレス> --agree-tos

-dオプションでは複数ドメインを,区切りで複数指定できます。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?