serverapps:security:cert:acmesh:letsencrypt
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| serverapps:security:cert:acmesh:letsencrypt [2024/12/09 08:51] – [Virtual hostの例] hayashi | serverapps:security:cert:acmesh:letsencrypt [2025/04/21 11:26] (現在) – [レジスト] admin | ||
|---|---|---|---|
| 行 18: | 行 18: | ||
| ===== レジスト ===== | ===== レジスト ===== | ||
| + | |||
| + | # acme.sh --register-account -m yourname@example.com --server letsencrypt_test | ||
| # acme.sh --register-account -m yourname@example.com | # acme.sh --register-account -m yourname@example.com | ||
| - | [...... 2022] Registering account: https:// | + | |
| + | | ||
| [...... 2022] Registered | [...... 2022] Registered | ||
| [...... 2022] ACCOUNT_THUMBPRINT=' | [...... 2022] ACCOUNT_THUMBPRINT=' | ||
| 行 26: | 行 29: | ||
| ==== webroot ディレクトリの作成 ==== | ==== webroot ディレクトリの作成 ==== | ||
| - | mkdir -p / | + | mkdir -p / |
| - | chown -R www:www / | + | chown -R www:www / |
| ==== ACME チャレンジの設定 ==== | ==== ACME チャレンジの設定 ==== | ||
| 行 34: | 行 37: | ||
| <file config / | <file config / | ||
| location / | location / | ||
| - | alias / | + | alias / |
| } | } | ||
| </ | </ | ||
| 行 40: | 行 43: | ||
| ==== Virtual hostの例 ==== | ==== Virtual hostの例 ==== | ||
| - | <file - / | + | <file - /usr/local/ |
| server { | server { | ||
| 行 50: | 行 53: | ||
| # Let's Encrypt webroot | # Let's Encrypt webroot | ||
| - | include includes/letsencrypt-webroot; | + | include includes/acme-webroot; |
| } | } | ||
| </ | </ | ||
| + | |||
| + | === domainが複数の場合の例 === | ||
| + | |||
| + | server_name 1.mydomain.com 2.mydomain.com 3.mydomain.com; | ||
| + | または | ||
| + | server_name *.mydomain.com *.testmydomain.com; | ||
| ===== 証明書発行 ===== | ===== 証明書発行 ===== | ||
serverapps/security/cert/acmesh/letsencrypt.1733734289.txt.gz · 最終更新: by hayashi
