Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d54ffdd1
Commit
d54ffdd1
authored
Mar 22, 2017
by
neil
Committed by
GitHub
Mar 22, 2017
Browse files
Merge pull request #740 from Neilpang/dev
rename parameters
parents
47d9a9cf
5c539af7
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d54ffdd1
...
@@ -161,17 +161,17 @@ You **MUST** use this command to copy the certs to the target files, **DO NOT**
...
@@ -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
\
--cert
path
/path/to/certfile/in/apache/cert.pem
\
--cert
-file
/path/to/certfile/in/apache/cert.pem
\
--key
path
/path/to/keyfile/in/apache/key.pem
\
--key
-file
/path/to/keyfile/in/apache/key.pem
\
--fullchain
path
/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
\
--key
path
/path/to/keyfile/in/nginx/key.pem
\
--key
-file
/path/to/keyfile/in/nginx/key.pem
\
--fullchain
path
/path/to/fullchain/nginx/cert.pem
\
--fullchain
-file
/path/to/fullchain/nginx/cert.pem
\
--reloadcmd
"service nginx force-reload"
--reloadcmd
"service nginx force-reload"
```
```
...
...
acme.sh
View file @
d54ffdd1
...
@@ -4035,7 +4035,7 @@ deploy() {
...
@@ -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] [--cert
path
cert-file-path] [--key
path
key-file-path] [--ca
path
ca-cert-file-path] [ --reloadCmd reloadCmd] [--fullchain
path
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:
...
@@ -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:
--cert
path
/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.
--key
path
/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.
--ca
path
/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.
--fullchain
path
/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() {
...
@@ -4913,10 +4913,10 @@ _process() {
_webroot
=
""
_webroot
=
""
_keylength
=
""
_keylength
=
""
_accountkeylength
=
""
_accountkeylength
=
""
_cert
path
=
""
_cert
_file
=
""
_key
path
=
""
_key
_file
=
""
_ca
path
=
""
_ca
_file
=
""
_fullchain
path
=
""
_fullchain
_file
=
""
_reloadcmd
=
""
_reloadcmd
=
""
_password
=
""
_password
=
""
_accountconf
=
""
_accountconf
=
""
...
@@ -5158,20 +5158,20 @@ _process() {
...
@@ -5158,20 +5158,20 @@ _process() {
shift
shift
;;
;;
--certpath
)
--cert-file
|
--certpath
)
_cert
path
=
"
$2
"
_cert
_file
=
"
$2
"
shift
shift
;;
;;
--keypath
)
--key-file
|
--keypath
)
_key
path
=
"
$2
"
_key
_file
=
"
$2
"
shift
shift
;;
;;
--capath
)
--ca-file
|
--capath
)
_ca
path
=
"
$2
"
_ca
_file
=
"
$2
"
shift
shift
;;
;;
--fullchainpath
)
--fullchain-file
|
--fullchainpath
)
_fullchain
path
=
"
$2
"
_fullchain
_file
=
"
$2
"
shift
shift
;;
;;
--reloadcmd
|
--reloadCmd
)
--reloadcmd
|
--reloadCmd
)
...
@@ -5393,7 +5393,7 @@ _process() {
...
@@ -5393,7 +5393,7 @@ _process() {
uninstall
)
uninstall
"
$_nocron
"
;;
uninstall
)
uninstall
"
$_nocron
"
;;
upgrade
)
upgrade
;;
upgrade
)
upgrade
;;
issue
)
issue
)
issue
"
$_webroot
"
"
$_domain
"
"
$_altdomains
"
"
$_keylength
"
"
$_cert
path
"
"
$_key
path
"
"
$_ca
path
"
"
$_reloadcmd
"
"
$_fullchain
path
"
"
$_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() {
...
@@ -5405,7 +5405,7 @@ _process() {
showcsr
"
$_csr
"
"
$_domain
"
showcsr
"
$_csr
"
"
$_domain
"
;;
;;
installcert
)
installcert
)
installcert
"
$_domain
"
"
$_cert
path
"
"
$_key
path
"
"
$_ca
path
"
"
$_reloadcmd
"
"
$_fullchain
path
"
"
$_ecc
"
installcert
"
$_domain
"
"
$_cert
_file
"
"
$_key
_file
"
"
$_ca
_file
"
"
$_reloadcmd
"
"
$_fullchain
_file
"
"
$_ecc
"
;;
;;
renew
)
renew
)
renew
"
$_domain
"
"
$_ecc
"
renew
"
$_domain
"
"
$_ecc
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment