fixes: rename installcert to install-cert
parent
71fd38eddb
commit
9903dd4d6d
8
说明.md
8
说明.md
|
@ -117,11 +117,11 @@ acme.sh --issue -d mydomain2.com --dns dns_dp
|
||||||
|
|
||||||
注意, 默认生成的证书都放在安装目录下: `~/.acme.sh/`, 请不要直接使用此目录下的文件, 例如: 不要直接让 nginx/apache 的配置文件使用这下面的文件. 这里面的文件都是内部使用, 而且目录结构可能会变化.
|
注意, 默认生成的证书都放在安装目录下: `~/.acme.sh/`, 请不要直接使用此目录下的文件, 例如: 不要直接让 nginx/apache 的配置文件使用这下面的文件. 这里面的文件都是内部使用, 而且目录结构可能会变化.
|
||||||
|
|
||||||
正确的使用方法是使用 `--installcert` 命令,并指定目标位置, 然后证书文件会被copy到相应的位置,
|
正确的使用方法是使用 `--install-cert` 命令,并指定目标位置, 然后证书文件会被copy到相应的位置,
|
||||||
例如:
|
例如:
|
||||||
## Apache example:
|
## Apache example:
|
||||||
```
|
```
|
||||||
acme.sh --installcert -d example.com \
|
acme.sh --install-cert -d example.com \
|
||||||
--cert-file /path/to/certfile/in/apache/cert.pem \
|
--cert-file /path/to/certfile/in/apache/cert.pem \
|
||||||
--key-file /path/to/keyfile/in/apache/key.pem \
|
--key-file /path/to/keyfile/in/apache/key.pem \
|
||||||
--fullchain-file /path/to/fullchain/certfile/apache/fullchain.pem \
|
--fullchain-file /path/to/fullchain/certfile/apache/fullchain.pem \
|
||||||
|
@ -130,7 +130,7 @@ acme.sh --installcert -d example.com \
|
||||||
|
|
||||||
## Nginx example:
|
## Nginx example:
|
||||||
```
|
```
|
||||||
acme.sh --installcert -d example.com \
|
acme.sh --install-cert -d example.com \
|
||||||
--key-file /path/to/keyfile/in/nginx/key.pem \
|
--key-file /path/to/keyfile/in/nginx/key.pem \
|
||||||
--fullchain-file /path/to/fullchain/nginx/cert.pem \
|
--fullchain-file /path/to/fullchain/nginx/cert.pem \
|
||||||
--reloadcmd "service nginx force-reload"
|
--reloadcmd "service nginx force-reload"
|
||||||
|
@ -140,7 +140,7 @@ acme.sh --installcert -d example.com \
|
||||||
|
|
||||||
Nginx 的配置 `ssl_certificate` 使用 `/etc/nginx/ssl/fullchain.cer` ,而非 `/etc/nginx/ssl/<domain>.cer` ,否则 [SSL Labs](https://www.ssllabs.com/ssltest/) 的测试会报 `Chain issues Incomplete` 错误。
|
Nginx 的配置 `ssl_certificate` 使用 `/etc/nginx/ssl/fullchain.cer` ,而非 `/etc/nginx/ssl/<domain>.cer` ,否则 [SSL Labs](https://www.ssllabs.com/ssltest/) 的测试会报 `Chain issues Incomplete` 错误。
|
||||||
|
|
||||||
`--installcert`命令可以携带很多参数, 来指定目标文件. 并且可以指定 reloadcmd, 当证书更新以后, reloadcmd会被自动调用,让服务器生效.
|
`--install-cert`命令可以携带很多参数, 来指定目标文件. 并且可以指定 reloadcmd, 当证书更新以后, reloadcmd会被自动调用,让服务器生效.
|
||||||
|
|
||||||
详细参数请参考: https://github.com/Neilpang/acme.sh#3-install-the-issued-cert-to-apachenginx-etc
|
详细参数请参考: https://github.com/Neilpang/acme.sh#3-install-the-issued-cert-to-apachenginx-etc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue