GCEのサイトをSSL化
インストール方法を確認
無料の Let's Encrypt でSSL証明書を発行するため、インストール方法をCertbot公式サイトで確認。
今回使ったGCEはDebian10+Nginxだったのでこの手順に沿って作業を行う。
Snappyのインストール
パッケージ管理ソフト Snappy をインストールする。
$ sudo apt update
$ sudo apt install snapd
$ sudo snap install core; sudo snap refresh core
core 16-2.49.2 from Canonical✓ installed
certbot のインストール
古いパッケージがあればアンインストール
$ sudo apt-get remove certbot
Snappyを使って最新インストール
$ sudo snap install --classic certbot
certbot 1.14.0 from Certbot Project (certbot-eff✓) installed
シンボリックリンク作成
$ sudo ln -s /snap/bin/certbot /usr/bin/certbot
Certbot設定実行
Nginx用設定を自動実行
$ sudo certbot --nginx
メールアドレスを入力
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): <メールアドレス>
使用許諾
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
寄付のメールを送って良いか?
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o:
Congratulations! You have successfully enabled https://hogehoge
以上
Author And Source
この問題について(GCEのサイトをSSL化), 我々は、より多くの情報をここで見つけました https://qiita.com/default-004/items/b2c9e4573d456d714159著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .