From 9ee80cef7c2e6bb9fa19519c5adf7a99d4d07b4b Mon Sep 17 00:00:00 2001 From: Mowd Date: Sat, 29 Feb 2020 02:59:44 +0800 Subject: [PATCH] Add --installcert example for apache. --- 说明.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/说明.md b/说明.md index b451813..6468a60 100644 --- a/说明.md +++ b/说明.md @@ -119,11 +119,21 @@ acme.sh --issue -d mydomain2.com --dns dns_dp 正确的使用方法是使用 `--installcert` 命令,并指定目标位置, 然后证书文件会被copy到相应的位置, 例如: +## Apache example: ``` -acme.sh --installcert -d .com \ - --key-file /etc/nginx/ssl/.key \ - --fullchain-file /etc/nginx/ssl/fullchain.cer \ - --reloadcmd "service nginx force-reload" +acme.sh --installcert -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 example: +``` +acme.sh --installcert -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" ``` (一个小提醒, 这里用的是 `service nginx force-reload`, 不是 `service nginx reload`, 据测试, `reload` 并不会重新加载证书, 所以用的 `force-reload`)