diff --git a/README.md b/README.md index bd0cbd24..b762268e 100644 --- a/README.md +++ b/README.md @@ -138,15 +138,24 @@ More examples: https://github.com/Neilpang/acme.sh/wiki/How-to-issue-a-cert # 3. Install the issued cert to apache/nginx etc. -After you issue a cert, you probably want to install/copy the cert to your nginx/apache or other servers you may be using. +After you issue a cert, you probably want to install/copy the cert to your nginx/apache or other servers. +You **MUST** use this command to copy the certs to the target files, **Do NOT** use the certs files in **.acme.sh/** folder, they are for internal use only, the folder structure may change in future. +**nginx** example ```bash acme.sh --installcert -d example.com \ ---certpath /path/to/certfile/in/apache/nginx \ ---keypath /path/to/keyfile/in/apache/nginx \ ---capath /path/to/ca/certfile/apache/nginx \ ---fullchainpath path/to/fullchain/certfile/apache/nginx \ ---reloadcmd "service apache2|nginx reload" +--keypath /path/to/keyfile/in/nginx/key.pem \ +--fullchainpath path/to/fullchain/nginx/cert.pem \ +--reloadcmd "service nginx restart" +``` + +**apache** example +```bash +acme.sh --installcert -d example.com \ +--certpath /path/to/certfile/in/apache/cert.pem \ +--keypath /path/to/keyfile/in/apache/key.pem \ +--fullchainpath path/to/fullchain/certfile/apache/fullchain.pem \ +--reloadcmd "service apache2 restart" ``` Only the domain is required, all the other parameters are optional.