mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-30 18:07:15 +00:00 
			
		
		
		
	
						commit
						d54ffdd187
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -161,17 +161,17 @@ You **MUST** use this command to copy the certs to the target files, **DO NOT** | |||||||
| **Apache** example: | **Apache** example: | ||||||
| ```bash | ```bash | ||||||
| acme.sh --install-cert -d example.com \ | acme.sh --install-cert -d example.com \ | ||||||
| --certpath      /path/to/certfile/in/apache/cert.pem  \ | --cert-file      /path/to/certfile/in/apache/cert.pem  \ | ||||||
| --keypath       /path/to/keyfile/in/apache/key.pem  \ | --key-file       /path/to/keyfile/in/apache/key.pem  \ | ||||||
| --fullchainpath /path/to/fullchain/certfile/apache/fullchain.pem \ | --fullchain-file /path/to/fullchain/certfile/apache/fullchain.pem \ | ||||||
| --reloadcmd     "service apache2 force-reload" | --reloadcmd     "service apache2 force-reload" | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| **Nginx** example: | **Nginx** example: | ||||||
| ```bash | ```bash | ||||||
| acme.sh --install-cert -d example.com \ | acme.sh --install-cert -d example.com \ | ||||||
| --keypath       /path/to/keyfile/in/nginx/key.pem  \ | --key-file       /path/to/keyfile/in/nginx/key.pem  \ | ||||||
| --fullchainpath /path/to/fullchain/nginx/cert.pem \ | --fullchain-file /path/to/fullchain/nginx/cert.pem \ | ||||||
| --reloadcmd     "service nginx force-reload" | --reloadcmd     "service nginx force-reload" | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										38
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								acme.sh
									
									
									
									
									
								
							| @ -4035,7 +4035,7 @@ deploy() { | |||||||
| installcert() { | installcert() { | ||||||
|   _main_domain="$1" |   _main_domain="$1" | ||||||
|   if [ -z "$_main_domain" ]; then |   if [ -z "$_main_domain" ]; then | ||||||
|     _usage "Usage: $PROJECT_ENTRY --installcert -d domain.com  [--ecc] [--certpath cert-file-path]  [--keypath key-file-path]  [--capath ca-cert-file-path]   [ --reloadCmd reloadCmd] [--fullchainpath fullchain-path]" |     _usage "Usage: $PROJECT_ENTRY --installcert -d domain.com  [--ecc] [--cert-file cert-file-path]  [--key-file key-file-path]  [--ca-file ca-cert-file-path]   [ --reloadCmd reloadCmd] [--fullchain-file fullchain-path]" | ||||||
|     return 1 |     return 1 | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
| @ -4785,10 +4785,10 @@ Parameters: | |||||||
|    |    | ||||||
|   These parameters are to install the cert to nginx/apache or anyother server after issue/renew a cert: |   These parameters are to install the cert to nginx/apache or anyother server after issue/renew a cert: | ||||||
|    |    | ||||||
|   --certpath /path/to/real/cert/file  After issue/renew, the cert will be copied to this path. |   --cert-file /path/to/real/cert/file After issue/renew, the cert will be copied to this path. | ||||||
|   --keypath /path/to/real/key/file  After issue/renew, the key will be copied to this path. |   --key-file  /path/to/real/key/file  After issue/renew, the key will be copied to this path. | ||||||
|   --capath /path/to/real/ca/file    After issue/renew, the intermediate cert will be copied to this path. |   --ca-file   /path/to/real/ca/file   After issue/renew, the intermediate cert will be copied to this path. | ||||||
|   --fullchainpath /path/to/fullchain/file After issue/renew, the fullchain cert will be copied to this path. |   --fullchain-file /path/to/fullchain/file After issue/renew, the fullchain cert will be copied to this path. | ||||||
|    |    | ||||||
|   --reloadcmd \"service nginx reload\" After issue/renew, it's used to reload the server. |   --reloadcmd \"service nginx reload\" After issue/renew, it's used to reload the server. | ||||||
| 
 | 
 | ||||||
| @ -4913,10 +4913,10 @@ _process() { | |||||||
|   _webroot="" |   _webroot="" | ||||||
|   _keylength="" |   _keylength="" | ||||||
|   _accountkeylength="" |   _accountkeylength="" | ||||||
|   _certpath="" |   _cert_file="" | ||||||
|   _keypath="" |   _key_file="" | ||||||
|   _capath="" |   _ca_file="" | ||||||
|   _fullchainpath="" |   _fullchain_file="" | ||||||
|   _reloadcmd="" |   _reloadcmd="" | ||||||
|   _password="" |   _password="" | ||||||
|   _accountconf="" |   _accountconf="" | ||||||
| @ -5158,20 +5158,20 @@ _process() { | |||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
| 
 | 
 | ||||||
|       --certpath) |       --cert-file | --certpath) | ||||||
|         _certpath="$2" |         _cert_file="$2" | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|       --keypath) |       --key-file | --keypath) | ||||||
|         _keypath="$2" |         _key_file="$2" | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|       --capath) |       --ca-file | --capath) | ||||||
|         _capath="$2" |         _ca_file="$2" | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|       --fullchainpath) |       --fullchain-file | --fullchainpath) | ||||||
|         _fullchainpath="$2" |         _fullchain_file="$2" | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|       --reloadcmd | --reloadCmd) |       --reloadcmd | --reloadCmd) | ||||||
| @ -5393,7 +5393,7 @@ _process() { | |||||||
|     uninstall) uninstall "$_nocron" ;; |     uninstall) uninstall "$_nocron" ;; | ||||||
|     upgrade) upgrade ;; |     upgrade) upgrade ;; | ||||||
|     issue) |     issue) | ||||||
|       issue "$_webroot" "$_domain" "$_altdomains" "$_keylength" "$_certpath" "$_keypath" "$_capath" "$_reloadcmd" "$_fullchainpath" "$_pre_hook" "$_post_hook" "$_renew_hook" "$_local_address" |       issue "$_webroot" "$_domain" "$_altdomains" "$_keylength" "$_cert_file" "$_key_file" "$_ca_file" "$_reloadcmd" "$_fullchain_file" "$_pre_hook" "$_post_hook" "$_renew_hook" "$_local_address" | ||||||
|       ;; |       ;; | ||||||
|     deploy) |     deploy) | ||||||
|       deploy "$_domain" "$_deploy_hook" "$_ecc" |       deploy "$_domain" "$_deploy_hook" "$_ecc" | ||||||
| @ -5405,7 +5405,7 @@ _process() { | |||||||
|       showcsr "$_csr" "$_domain" |       showcsr "$_csr" "$_domain" | ||||||
|       ;; |       ;; | ||||||
|     installcert) |     installcert) | ||||||
|       installcert "$_domain" "$_certpath" "$_keypath" "$_capath" "$_reloadcmd" "$_fullchainpath" "$_ecc" |       installcert "$_domain" "$_cert_file" "$_key_file" "$_ca_file" "$_reloadcmd" "$_fullchain_file" "$_ecc" | ||||||
|       ;; |       ;; | ||||||
|     renew) |     renew) | ||||||
|       renew "$_domain" "$_ecc" |       renew "$_domain" "$_ecc" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user