0
0

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 1 year has passed since last update.

LightSail上に構築したWordPressのSSL証明書を更新する

Last updated at Posted at 2022-08-05

役に立つ対象の方

  • LightSail上にWordPressを構築した方でSSLの証明書が切れてしまった方

できるようになること

  • SSLの証明書を更新できるようになる

SSL更新の手順

1.LightSailの管理画面からターミナルを開く
*黄色にハイライトされたアイコンから開けます。
スクリーンショット 2022-08-06 015858.png

2.下記のコマンドを入力する

sudo /opt/bitnami/bncert-tool

3.下記の質問で自身のサイトのドメインを入力する。
*例えば"qiita.com"など設定しているドメインを入力する。

// 有効なドメイン名を設定して下さい。
Please provide a valid space-separated list of domains for which you wish to 
configure your web server.
Domain list []: qiita.com

4.内容に問題がなければYesを回答する

// 以下のドメインに含まれていません。それを追加してもいいですか?
The following domains were not included: www.qiita.com. Do you want to add them? 
[Y/n]: Y

5.下記の質問にそれぞれ返答する

Enable/disable redirections

Please select the redirections you wish to enable or disable on your Bitnami 
installation.

// HTTPでアクセスされた場合HTTPSへリダイレクトさせますか?
Enable HTTP to HTTPS redirection [Y/n]: Y
// wwwなしでアクセスされた場合wwwへリダイレクトさせますか?
Enable non-www to www redirection [Y/n]: Y
// wwwでアクセスされた場合wwwなしへリダイレクトさせますか?
Enable www to non-www redirection [y/N]: n

6.規約に同意する

Changes to perform

The following changes will be performed to your Bitnami installation:

1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains: 
echiechimykano.com www.echiechimykano.com
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: www.echiechimykano.com
5. Enable HTTP to HTTPS redirection (example: redirect http://echiechimykano.com 
to https://echiechimykano.com)
6. Enable non-www to www redirection (example: redirect echiechimykano.com to 
www.echiechimykano.com)
7. Start web server once all changes have been performed

// 規約に同意してくれますか?
Do you agree to these changes? [Y/n]: Y

更新完了

Successが表示されれば更新が完了しました。
自身のWebサイトにアクセスしてSSLの証明書が更新されていることを確認してください。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?