mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
Support updateaccount
and registeraccount
. fix https://github.com/Neilpang/acme.sh/issues/70
This commit is contained in:
parent
d404e92d16
commit
eb59817e81
32
acme.sh
32
acme.sh
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
VER=2.5.7
|
VER=2.5.8
|
||||||
|
|
||||||
PROJECT_NAME="acme.sh"
|
PROJECT_NAME="acme.sh"
|
||||||
|
|
||||||
@ -1763,7 +1763,15 @@ _on_issue_success() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateaccount() {
|
||||||
|
_initpath
|
||||||
|
_regAccount
|
||||||
|
}
|
||||||
|
|
||||||
|
registeraccount() {
|
||||||
|
_initpath
|
||||||
|
_regAccount
|
||||||
|
}
|
||||||
|
|
||||||
_regAccount() {
|
_regAccount() {
|
||||||
_initpath
|
_initpath
|
||||||
@ -1839,9 +1847,9 @@ _regAccount() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ "$code" = '202' ] ; then
|
if [ "$code" = '202' ] ; then
|
||||||
_debug "Update tos success."
|
_info "Update success."
|
||||||
else
|
else
|
||||||
_err "Update tos error."
|
_err "Update error."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -2970,7 +2978,6 @@ _initconf() {
|
|||||||
#FORCE=1 # Force to issue cert
|
#FORCE=1 # Force to issue cert
|
||||||
#DEBUG=1 # Debug mode
|
#DEBUG=1 # Debug mode
|
||||||
|
|
||||||
#ACCOUNT_KEY_HASH=account key hash
|
|
||||||
|
|
||||||
#USER_AGENT=\"$USER_AGENT\"
|
#USER_AGENT=\"$USER_AGENT\"
|
||||||
|
|
||||||
@ -3282,6 +3289,8 @@ Commands:
|
|||||||
--uninstallcronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
|
--uninstallcronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
|
||||||
--cron Run cron job to renew all the certs.
|
--cron Run cron job to renew all the certs.
|
||||||
--toPkcs Export the certificate and key to a pfx file.
|
--toPkcs Export the certificate and key to a pfx file.
|
||||||
|
--updateaccount Update account info.
|
||||||
|
--registeraccount Register account key.
|
||||||
--createAccountKey, -cak Create an account private key, professional use.
|
--createAccountKey, -cak Create an account private key, professional use.
|
||||||
--createDomainKey, -cdk Create an domain private key, professional use.
|
--createDomainKey, -cdk Create an domain private key, professional use.
|
||||||
--createCSR, -ccsr Create CSR , professional use.
|
--createCSR, -ccsr Create CSR , professional use.
|
||||||
@ -3501,7 +3510,12 @@ _process() {
|
|||||||
--deactivate)
|
--deactivate)
|
||||||
_CMD="deactivate"
|
_CMD="deactivate"
|
||||||
;;
|
;;
|
||||||
|
--updateaccount)
|
||||||
|
_CMD="updateaccount"
|
||||||
|
;;
|
||||||
|
--registeraccount)
|
||||||
|
_CMD="registeraccount"
|
||||||
|
;;
|
||||||
--domain|-d)
|
--domain|-d)
|
||||||
_dvalue="$2"
|
_dvalue="$2"
|
||||||
|
|
||||||
@ -3779,7 +3793,13 @@ _process() {
|
|||||||
;;
|
;;
|
||||||
deactivate)
|
deactivate)
|
||||||
deactivate "$_domain,$_altdomains"
|
deactivate "$_domain,$_altdomains"
|
||||||
;;
|
;;
|
||||||
|
registeraccount)
|
||||||
|
registeraccount
|
||||||
|
;;
|
||||||
|
updateaccount)
|
||||||
|
updateaccount
|
||||||
|
;;
|
||||||
list)
|
list)
|
||||||
list "$_listraw"
|
list "$_listraw"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user