LoginSignup
1
0

More than 1 year has passed since last update.

【備忘録】AWS LightsailのRedmineをhttps通信にする

Posted at

はじめに

前回までの記事でRedmineの環境にドメインを紐づける所まで実施しました。では、最後にHTTPS通信化しましょう。

HTTPS化手順

①bncert-toolを実行する。
Bitnamiが提供するプロダクト(WordPressやRedmine)は簡単にSSL化できるようにツールが提供されています。それが「bncert-tool」なので、これを利用してHTTPSかします。

sudo /opt/bitnami/bncert-tool

----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.

----------------------------------------------------------------------------
Domains

Please provide a valid space-separated list of domains for which you wish to 
configure your web server.

Domain list []: 

②登録するDomainを入力する

Domain list []:登録するDomainを入力 

③以降は記載しますが、各自適当に実施してください。

③ドメイン名にwww含めるか聞かれる。

The following domains were not included: www.ドメイン名. Do you want to add them? [Y/n]:

④HTTPからHTTPSへのリダイレクト実施するか?

Enable HTTP to HTTPS redirection [Y/n]: Y 

⑤色々変更あるけど、了承してくれる??

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: 
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: 
5. Enable HTTP to HTTPS redirection (example: redirect XXX)
6. Start web server once all changes have been performed
Do you agree to these changes? [Y/n]: Y

⑥Emailアドレス教えて!!

E-mail address []:

⑦Successの連絡

Success

The Bitnami HTTPS Configuration Tool succeeded in modifying your installation.

The configuration report is shown below.

はい、これで完成!!!めっちゃ簡単にSSL化できます!!!
試しにDomainを叩き直すと、HTTPS化されています!!!

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