Home
News
Forum
Wiki
Blog
Contents
Gallery
Movies
Downloads
About NSL
If you want to see English page, please click "English" Button at Left.
[
タイトル一覧
|
ページ一覧
|
新規
|
単語検索
|
最終更新
|
ヘルプ
]
Let's Encrypt
のソース
[
トップ
]
[ ]
差分
を表示
Let's Encrypt
へ行く。
« Prev
* Let’s Encrypt [#be335664] #br ** certbot [#q7d2a70f] - Let's ncrypt のサーバ証明書の自動発行・更新用スクリプト #br *** Install [#odbcf85c] # yum install epel-release # yum install certbot #br **** CentOS6 [#u2bfa592] - certbot-auto -- 最新版は動かない(2021 6/29) -- 古いバージョンの certbot-auto をダウンロード # /usr/local/sbin # wget https://raw.githubusercontent.com/certbot/certbot/v1.9.0/certbot-auto -- スクリプト /usr/local/sbin/certbot を作る #!/bin/bash /usr/local/sbin/certbot-auto $* --no-self-upgrade --no-bootstrap - python3.6 -- python3 が必要だがダウンロードできないので,ソースからコンパイルする. # wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz # xzcat Python-3.6.2.tar.xz | tar xfv - # cd Python-3.6.2 # ./configure # make # make install *** 実行 [#wb966ce8] - certbot certonly --webroot -w /home/apache/htdocs -d www.nsl.tuis.ac.jp -- DocumentRoot にファイルを作って,サーバでそれをチェックしているみたい(サーバの存在確認) --- メールアドレス,Y,Y - サーバ証明書と秘密鍵が以下にできる.(シンボリックリンク) -- 証明書:/etc/letsencrypt/live/www.nsl.tuis.ac.jp/fullchain.pem -- 秘密鍵:/etc/letsencrypt/live/www.nsl.tuis.ac.jp/privkey.pem #br *** cron [#o6968d67] **** 失敗 [#ybbf8460] - %%月一または週一%% 毎日で以下の cronを流す. -- %%00 3 * * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1%% -- これだと 更新が無い場合も httpd が再起動する. #br **** 正解は以下 [#l9205dc3] - 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 - /usr/local/bin/restart-network-service #!/bin/bash # if [ ! -f /tmp/certs_changed ]; then exit 1 fi rm /tmp/certs_changed # #systemctl restart cockpit # systemctl restart ltictr_proxy sleep 1 systemctl restart jupyterhub # #br ** GitLab [#o17b206c] - see [[GitLab]] #br
« Prev
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
現: 2023-05-27 (土) 18:22:55
iseki
サイト内 検索
高度な検索
ログイン
ユーザー名:
パスワード:
パスワード紛失
新規登録
サブ メニュー
新着情報
Books
リンク
サイトマップ
e-Learning
TUIS 認証局証明書
ミニカレンダー
2024年 5月
日
月
火
水
木
金
土
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<今日>
オンライン状況
92 人のユーザが現在オンラインです。 (17 人のユーザが xpwiki を参照しています。)
登録ユーザ: 0
ゲスト: 92
もっと...
アクセスカウンタ
今日 :
昨日 :
総計 :
Powered by XOOPS Cube 2.1© 2001-2006
XOOPS Cube Project
Design by
XoopsDesign.com