Add --installcert example for apache.
parent
2b2fc32c0d
commit
9ee80cef7c
16
说明.md
16
说明.md
|
@ -119,10 +119,20 @@ acme.sh --issue -d mydomain2.com --dns dns_dp
|
|||
|
||||
正确的使用方法是使用 `--installcert` 命令,并指定目标位置, 然后证书文件会被copy到相应的位置,
|
||||
例如:
|
||||
## Apache example:
|
||||
```
|
||||
acme.sh --installcert -d <domain>.com \
|
||||
--key-file /etc/nginx/ssl/<domain>.key \
|
||||
--fullchain-file /etc/nginx/ssl/fullchain.cer \
|
||||
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"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue