From 3c33cdfa3da68000a40b85304821705f0deea951 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 3 Nov 2016 19:19:51 +0800 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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.