- 差分 を表示
- ソース を表示
- Let's Encrypt へ行く。
4: 2022-03-07 (月) 15:01:29 iseki | 現: 2023-05-27 (土) 18:22:55 iseki | ||
---|---|---|---|
Line 31: | Line 31: | ||
- certbot certonly --webroot -w /home/apache/htdocs -d www.nsl.tuis.ac.jp | - certbot certonly --webroot -w /home/apache/htdocs -d www.nsl.tuis.ac.jp | ||
-- DocumentRoot にファイルを作って,サーバでそれをチェックしているみたい(サーバの存在確認) | -- DocumentRoot にファイルを作って,サーバでそれをチェックしているみたい(サーバの存在確認) | ||
+ | --- メールアドレス,Y,Y | ||
+ | |||
- サーバ証明書と秘密鍵が以下にできる.(シンボリックリンク) | - サーバ証明書と秘密鍵が以下にできる.(シンボリックリンク) | ||
-- 証明書:/etc/letsencrypt/live/www.nsl.tuis.ac.jp/fullchain.pem | -- 証明書:/etc/letsencrypt/live/www.nsl.tuis.ac.jp/fullchain.pem | ||
Line 40: | Line 41: | ||
**** 失敗 [#ybbf8460] | **** 失敗 [#ybbf8460] | ||
- %%月一または週一%% 毎日で以下の cronを流す. | - %%月一または週一%% 毎日で以下の cronを流す. | ||
- | -- %%00 3 1 * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1%% | + | -- %%00 3 * * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1%% |
-- これだと 更新が無い場合も httpd が再起動する. | -- これだと 更新が無い場合も httpd が再起動する. | ||
#br | #br | ||
Line 46: | Line 47: | ||
**** 正解は以下 [#l9205dc3] | **** 正解は以下 [#l9205dc3] | ||
- cron | - cron | ||
+ | 00 3 * * * /usr/local/sbin/certbot renew --post-hook "/etc/init.d/httpd restart" 1>/dev/null 2>&1 | ||
+ | |||
+ | |||
+ | **** for Jupyterhub [#i691e1cc] | ||
05 4 * * * /usr/bin/certbot renew --post-hook "touch /tmp/certs_changed" 1>/dev/null 2>&1 && /usr/local/bin/restart-network-service 1>/dev/null 2>&1 | 05 4 * * * /usr/bin/certbot renew --post-hook "touch /tmp/certs_changed" 1>/dev/null 2>&1 && /usr/local/bin/restart-network-service 1>/dev/null 2>&1 | ||
- /usr/local/bin/restart-network-service | - /usr/local/bin/restart-network-service |
- Let's Encrypt のバックアップ一覧
- Let's Encrypt のバックアップの現在との差分(No. All)
- 1: 2021-06-29 (火) 19:13:13 iseki
- 2: 2022-02-09 (水) 11:24:29 iseki
- 3: 2022-02-18 (金) 09:42:09 iseki
- 4: 2022-03-07 (月) 15:01:29 iseki
- 5: 2022-04-21 (木) 08:58:21 iseki