serverapps:security:cert:acmesh:letsencrypt
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| serverapps:security:cert:acmesh:letsencrypt [2024/12/09 06:27] – [Serevr] hayashi | serverapps:security:cert:acmesh:letsencrypt [2025/04/21 11:26] (現在) – [レジスト] admin | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== Let's Encrypt====== | ====== Let's Encrypt====== | ||
| - | ===== Serevr ===== | + | 以下の様にnginxでproxyを構成している前提 |
| - | 指定方法 | + | < |
| - | acme.sh --issue .... | + | _____ |
| - | | + | |
| - | | + | (_Internet_)======|proxy|=============|Server| |
| + | (______) | ||
| + | </ | ||
| + | |||
| + | acme.shはこの前段のnginxで動作しているものとします | ||
| + | |||
| + | ===== Default server ===== | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | ===== レジスト ===== | ||
| + | |||
| + | # acme.sh --register-account -m yourname@example.com | ||
| + | | ||
| + | [...... 2022] Account key creation OK. | ||
| + | [...... 2022] Registering account: | ||
| + | [...... 2022] Registered | ||
| + | [...... 2022] ACCOUNT_THUMBPRINT=' | ||
| + | |||
| + | ===== Nginx Proxyの設定 ===== | ||
| + | ==== webroot ディレクトリの作成 ==== | ||
| + | |||
| + | mkdir -p / | ||
| + | chown -R www:www / | ||
| + | |||
| + | ==== ACME チャレンジの設定 ==== | ||
| + | これは別ファイルとして必要に応じて組み込む | ||
| + | |||
| + | <file config / | ||
| + | location / | ||
| + | alias / | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Virtual hostの例 ==== | ||
| + | |||
| + | <file - / | ||
| + | |||
| + | server { | ||
| + | listen 80; | ||
| + | |||
| + | server_name mydomain.com; | ||
| + | |||
| + | # .... | ||
| + | |||
| + | # Let's Encrypt webroot | ||
| + | include includes/ | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | === domainが複数の場合の例 === | ||
| + | |||
| + | server_name 1.mydomain.com 2.mydomain.com 3.mydomain.com; | ||
| + | または | ||
| + | server_name *.mydomain.com *.testmydomain.com; | ||
| + | |||
| + | ===== 証明書発行 ===== | ||
| - | ^Short Name^ACME server URL^Usage Wiki^ | ||
| - | |letsencrypt|https:// | ||
| - | |letsencrypt_test|https:// | ||
| - | |buypass|https:// | ||
| - | |buypass_test|https:// | ||
| - | |zerossl|https:// | ||
| - | |sslcom|https:// | ||
| - | |google|https:// | ||
| - | |googletest|https:// | ||
serverapps/security/cert/acmesh/letsencrypt.1733725652.txt.gz · 最終更新: by hayashi
