ユーザ用ツール

サイト用ツール


serverapps:security:cert:acmesh

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
serverapps:security:cert:acmesh [2024/12/09 06:35] hayashiserverapps:security:cert:acmesh [2025/04/23 08:11] (現在) hayashi
行 18: 行 18:
   cd ./acme.sh   cd ./acme.sh
   ./acme.sh --install -m my@example.com   ./acme.sh --install -m my@example.com
 +
 +===== cron =====
 +
 +curlやwgetでinstallした場合には設定されるがpkgでは設定されないので以下を参考に設定する
 +
 +  0 0 * * * /usr/local/sbin/acme.sh --cron --home "/home/user/.acme.sh" > /dev/null
 +
 +===== 取得した証明書の配置 =====
 +
 +==== Apache ====
 +
 +  acme.sh --install-cert -d example.com \
 +  --cert-file      /path/to/certfile/in/apache/cert.pem  \
 +  --key-file       /path/to/keyfile/in/apache/key.pem  \
 +  --fullchain-file /path/to/fullchain/certfile/apache/fullchain.pem \
 +  --reloadcmd     "service apache2 force-reload"
 +
 +==== nginx ====
 +
 +  acme.sh --install-cert -d example.com \
 +  --key-file       /path/to/keyfile/in/nginx/key.pem  \
 +  --fullchain-file /path/to/fullchain/nginx/cert.pem \
 +  --reloadcmd     "service nginx force-reload"
 +
 +==== オプション ====
 +
 +^コマンド/オプション^値の例^説明^
 +|--install-cert|-|鍵の配置とreload|
 +|-d|www.example.com|ドメイン(必須)|
 +|--cert-file|/path/to/certfile/in/apache/cert.pem |サーバ証明書ファイル|
 +|--key-file       |path/to/keyfile/in/apache/key.pem|サーバの秘密鍵|
 +|--fullchain-file |path/to/fullchain/certfile/apache/fullchain.pem |中間認証局証明書+サーバ証明書ファイル|
 +|--reloadcmd     |"service apache2 force-reload"|再読み込みコマンド|
 +
 +
  
 ===== Serevr ===== ===== Serevr =====
行 35: 行 70:
 |google|https://dv.acme-v02.api.pki.goog/directory|[[https://github.com/acmesh-official/acme.sh/wiki/Google-Public-CA|Google Public CA]]| |google|https://dv.acme-v02.api.pki.goog/directory|[[https://github.com/acmesh-official/acme.sh/wiki/Google-Public-CA|Google Public CA]]|
 |googletest|https://dv.acme-v02.test-api.pki.goog/directory|[[https://github.com/acmesh-official/acme.sh/wiki/Google-Public-CA|Google Public CA]]| |googletest|https://dv.acme-v02.test-api.pki.goog/directory|[[https://github.com/acmesh-official/acme.sh/wiki/Google-Public-CA|Google Public CA]]|
 +
 +===== 参考 =====
 +
 +  * [[https://github.com/acmesh-official/acme.sh|github acme.sh]]
 +  * [[https://github.com/acmesh-official/acme.sh/wiki|Wiki]]
serverapps/security/cert/acmesh.1733726111.txt.gz · 最終更新: 2024/12/09 06:35 by hayashi