Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
eb59817e
Commit
eb59817e
authored
Sep 25, 2016
by
neil
Browse files
Support `updateaccount` and `registeraccount`. fix
https://github.com/Neilpang/acme.sh/issues/70
parent
d404e92d
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
eb59817e
#!/usr/bin/env sh
VER
=
2.5.
7
VER
=
2.5.
8
PROJECT_NAME
=
"acme.sh"
...
...
@@ -1763,7 +1763,15 @@ _on_issue_success() {
}
updateaccount
()
{
_initpath
_regAccount
}
registeraccount
()
{
_initpath
_regAccount
}
_regAccount
()
{
_initpath
...
...
@@ -1839,9 +1847,9 @@ _regAccount() {
return
1
fi
if
[
"
$code
"
=
'202'
]
;
then
_
debug
"Update
tos
success."
_
info
"Update success."
else
_err
"Update
tos
error."
_err
"Update error."
return
1
fi
fi
...
...
@@ -2970,7 +2978,6 @@ _initconf() {
#FORCE=1 # Force to issue cert
#DEBUG=1 # Debug mode
#ACCOUNT_KEY_HASH=account key hash
#USER_AGENT=
\"
$USER_AGENT
\"
...
...
@@ -3282,6 +3289,8 @@ Commands:
--uninstallcronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
--cron Run cron job to renew all the certs.
--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.
--createDomainKey, -cdk Create an domain private key, professional use.
--createCSR, -ccsr Create CSR , professional use.
...
...
@@ -3501,7 +3510,12 @@ _process() {
--deactivate
)
_CMD
=
"deactivate"
;;
--updateaccount
)
_CMD
=
"updateaccount"
;;
--registeraccount
)
_CMD
=
"registeraccount"
;;
--domain
|
-d
)
_dvalue
=
"
$2
"
...
...
@@ -3780,6 +3794,12 @@ _process() {
deactivate
)
deactivate
"
$_domain
,
$_altdomains
"
;;
registeraccount
)
registeraccount
;;
updateaccount
)
updateaccount
;;
list
)
list
"
$_listraw
"
;;
...
...
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