Notebook

これは日々の作業を通して学んだことや毎日の生活で気づいたことをを記録しておく備忘録である。

HTML ファイル生成日時: 2024/10/19 22:04:30.268 (台灣標準時)

TLS/SSL certificate の更新

ウェブサーバで HTTPS 接続ができるようにするときは、 TLS/SSL certificate を準備しないと、ウェブブラウザが「安全ではない」と文句を言っ てしまうでござる。 Let's Encrypt を利用すると、無料で TLS/SSL certificate を得ることができるでござる。 certificate には有効期間があ り、その有効期限は三ヶ月でござる。定期的に certificate を更新する必要 があるでござる。更新方法は簡単で、以下のコマンドを実行すればよいでござ る。


# /usr/pkg/sbin/apachectl stop
# certbot-3.10 renew
Saving debug log to /var/letsencrypt/log/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /usr/pkg/etc/letsencrypt/renewal/foo.bar.baz.edu.tw.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for foo.bar.baz.edu.tw

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all renewals succeeded: 
  /usr/pkg/etc/letsencrypt/live/foo.bar.baz.edu.tw/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# /usr/pkg/sbin/apachectl start

注意点は、ウェブサーバを一度止めてから certbot コマンドを実行する点で ござる。



Frequently accessed files

  1. Computer___Python/20220518_0.html
  2. Computer___Network/20230726_00.html
  3. Computer___Network/20230516_00.html
  4. Misc___Taiwan/20240207_00.html
  5. Computer___FreeBSD/20220621_0.html
  6. Computer___Python/20220715_0.html
  7. Food___Taiwan/20220429_0.html
  8. Computer___Network/20230508_00.html
  9. Computer___NetBSD/20220817_3.html
  10. Computer___Python/20220410_0.html
  11. Computer___Network/20240416_00.html
  12. Computer___Debian/20210223_1.html
  13. Computer___Network/20240130_00.html
  14. Computer___Python/20210124_0.html
  15. Computer___NetBSD/20220428_0.html
  16. Computer___NetBSD/20230119_00.html
  17. Computer___NetBSD/20220818_1.html
  18. Computer___Python/20221013_0.html
  19. Science___Math/20220420_0.html
  20. Computer___NetBSD/20240101_02.html
  21. Computer___TeX/20230503_00.html
  22. Computer___NetBSD/20230515_00.html
  23. Computer___NetBSD/20220808_0.html
  24. Science___Astronomy/20220503_0.html
  25. Computer___Python/20240101_00.html
  26. Computer___NetBSD/20210127_0.html
  27. Computer___Network/20220413_1.html
  28. Travel___Taiwan/20220809_2.html
  29. Computer___NetBSD/20210204_0.html
  30. Computer___Python/20220816_1.html


HTML file generated by Kinoshita Daisuke.