Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync #4720

Merged
merged 44 commits into from
Jul 30, 2023
Merged

sync #4720

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8881a9f
Add BookMyName API support
alaunay Oct 5, 2020
4ab5456
keep shfmt happy
alaunay Oct 5, 2020
7eea866
BMN -> BookMyName
alaunay Oct 5, 2020
4a60292
update freebsd
Oct 9, 2020
24a40af
Merge remote-tracking branch 'upstream/dev' into dev
alaunay Oct 9, 2020
d76fb56
no private functions
alaunay Oct 10, 2020
b71a088
Revert "no private functions"
alaunay Oct 10, 2020
6ee72e1
Spelling / grammar
systemcrash Mar 30, 2023
623d615
Remove external OTP dependency from synology_dsm.sh
Eagle3386 May 28, 2023
0548ad2
Fix debug output of session ID
Eagle3386 May 28, 2023
f680ede
start 3.0.7
Jun 9, 2023
0d04782
dns_1984hosting.sh: fix login with valid csrftoken and sessionid
phedoreanu Nov 26, 2022
7d50332
Merge pull request #4412 from phedoreanu/bugfix/1984_hosting_csrftoken
Neilpang Jun 11, 2023
41b6aeb
Merge pull request #4574 from systemcrash/patch-1
Neilpang Jun 30, 2023
d7f58c6
Merge branch 'acmesh-official:master' into patch-1
Eagle3386 Jul 4, 2023
db3f131
Re-add deprecated SYNO_TOTP_SECRET part for legacy compatibility
Eagle3386 Jul 4, 2023
0c9e4f6
Update synology_dsm.sh
Eagle3386 Jul 4, 2023
0d7b831
Fix variable initialization
Eagle3386 Jul 4, 2023
e0d96bc
Add initial AWS SES support
szhu25 Jul 5, 2023
4d94270
Add newline at end of file to satisfy shfmt's "No newline at end of f…
szhu25 Jul 5, 2023
8d136c6
Add newline at end of file to satisfy shfmt's "extra line" error
szhu25 Jul 5, 2023
a6b5f0c
Fix variable naming to make the access key and secret key consistent …
szhu25 Jul 5, 2023
cd13aee
Merge pull request #4687 from szhu25/ses-notifyhook
Neilpang Jul 8, 2023
53ede7b
Merge pull request #4646 from Eagle3386/patch-1
Neilpang Jul 8, 2023
299a157
fix https://github.com/acmesh-official/acme.sh/issues/4680
Jul 8, 2023
09041fb
fix format
Jul 8, 2023
0472f5d
Revert "fix format"
Jul 8, 2023
3761fb4
fix bug https://github.com/acmesh-official/acme.sh/issues/4442
Jul 8, 2023
8fd3a64
fix https://github.com/acmesh-official/acme.sh/issues/4442
Jul 8, 2023
b7c370f
Merge pull request #4691 from acmesh-official/4442
Neilpang Jul 8, 2023
a7455d7
fix https://github.com/acmesh-official/acme.sh/issues/4562#issuecomme…
Jul 8, 2023
cc0be6c
Merge branch 'acmesh-official:dev' into dev
alaunay Jul 9, 2023
ee50f25
Add BookMyName API support
alaunay Jul 9, 2023
80ad62f
Merge pull request #3208 from cusae/dev
Neilpang Jul 10, 2023
dd95887
Fix SES region variable
szhu25 Jul 14, 2023
55a3709
Merge pull request #4700 from szhu25/patch-1
Neilpang Jul 17, 2023
c48c8d0
Update dns_kappernet.sh
hknet Jul 27, 2023
c42ed9c
Merge pull request #4714 from hknet/master
Neilpang Jul 28, 2023
a51025f
fix https://github.com/acmesh-official/acme.sh/issues/3645
Jul 29, 2023
7f39cdc
fix format
Jul 29, 2023
a7f3d41
fix for solaris
Jul 29, 2023
6db8ae4
fix for solaris
Jul 29, 2023
15ee036
fix for solaris
Jul 29, 2023
b6f62ac
fix for curl bugs nghttp2_option_set_no_rfc9113_leading_and_trailing_…
Jul 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/DragonFlyBSD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
nat: |
"8080": "80"
prepare: |
pkg install -y curl socat
pkg install -y curl socat libnghttp2
usesh: true
run: |
cd ../acmetest \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/OpenBSD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN ACME_USE_WGET'
nat: |
"8080": "80"
prepare: pkg_add socat curl wget
prepare: pkg_add socat curl wget libnghttp2
usesh: true
copyback: false
run: |
Expand Down
47 changes: 36 additions & 11 deletions acme.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

VER=3.0.6
VER=3.0.7

PROJECT_NAME="acme.sh"

Expand Down Expand Up @@ -923,8 +923,16 @@ _sed_i() {
fi
}

if [ "$(echo abc | egrep -o b 2>/dev/null)" = "b" ]; then
__USE_EGREP=1
else
__USE_EGREP=""
fi

_egrep_o() {
if ! egrep -o "$1" 2>/dev/null; then
if [ "$__USE_EGREP" ]; then
egrep -o "$1"
else
sed -n 's/.*\('"$1"'\).*/\1/p'
fi
}
Expand Down Expand Up @@ -2101,9 +2109,20 @@ _head_n() {
}

_tail_n() {
if ! tail -n "$1" 2>/dev/null; then
if _is_solaris; then
#fix for solaris
tail -"$1"
else
tail -n "$1"
fi
}

_tail_c() {
if _is_solaris; then
#fix for solaris
tail -"$1"c
else
tail -c "$1"
fi
}

Expand All @@ -2116,6 +2135,7 @@ _send_signed_request() {
if [ -z "$keyfile" ]; then
keyfile="$ACCOUNT_KEY_PATH"
fi
_debug "=======Begin Send Signed Request======="
_debug url "$url"
_debug payload "$payload"

Expand Down Expand Up @@ -2277,7 +2297,7 @@ _setopt() {
if [ ! -f "$__conf" ]; then
touch "$__conf"
fi
if [ -n "$(tail -c 1 <"$__conf")" ]; then
if [ -n "$(_tail_c 1 <"$__conf")" ]; then
echo >>"$__conf"
fi

Expand Down Expand Up @@ -4602,9 +4622,10 @@ issue() {
_d="*.$_d"
fi
_debug2 _d "$_d"
_authorizations_map="$_d,$response
_authorizations_map="$_d,$response#$_authz_url
$_authorizations_map"
done

_debug2 _authorizations_map "$_authorizations_map"

_index=0
Expand Down Expand Up @@ -4656,7 +4677,8 @@ $_authorizations_map"
_on_issue_err "$_post_hook"
return 1
fi

_authz_url="$(echo "$_candidates" | sed "s/$_idn_d,//" | _egrep_o "#.*" | sed "s/^#//")"
_debug _authz_url "$_authz_url"
if [ -z "$thumbprint" ]; then
thumbprint="$(__calc_account_thumbprint)"
fi
Expand Down Expand Up @@ -4708,7 +4730,7 @@ $_authorizations_map"
_debug keyauthorization "$keyauthorization"
fi

dvlist="$d$sep$keyauthorization$sep$uri$sep$vtype$sep$_currentRoot"
dvlist="$d$sep$keyauthorization$sep$uri$sep$vtype$sep$_currentRoot$sep$_authz_url"
_debug dvlist "$dvlist"

vlist="$vlist$dvlist$dvsep"
Expand All @@ -4725,6 +4747,7 @@ $_authorizations_map"
keyauthorization=$(echo "$ventry" | cut -d "$sep" -f 2)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)
_authz_url=$(echo "$ventry" | cut -d "$sep" -f 6)
_debug d "$d"
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
_debug "$d is already verified, skip $vtype."
Expand Down Expand Up @@ -4850,7 +4873,7 @@ $_authorizations_map"
uri=$(echo "$ventry" | cut -d "$sep" -f 3)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)

_authz_url=$(echo "$ventry" | cut -d "$sep" -f 6)
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
_info "$d is already verified, skip $vtype."
continue
Expand All @@ -4860,6 +4883,7 @@ $_authorizations_map"
_debug "d" "$d"
_debug "keyauthorization" "$keyauthorization"
_debug "uri" "$uri"
_debug "_authz_url" "$_authz_url"
removelevel=""
token="$(printf "%s" "$keyauthorization" | cut -d '.' -f 1)"

Expand Down Expand Up @@ -4967,6 +4991,7 @@ $_authorizations_map"
MAX_RETRY_TIMES=30
fi

_debug "Lets check the status of the authz"
while true; do
waittimes=$(_math "$waittimes" + 1)
if [ "$waittimes" -ge "$MAX_RETRY_TIMES" ]; then
Expand Down Expand Up @@ -5014,9 +5039,9 @@ $_authorizations_map"
break
fi

if [ "$status" = "pending" ]; then
if _contains "$status" "pending"; then
_info "Pending, The CA is processing your order, please just wait. ($waittimes/$MAX_RETRY_TIMES)"
elif [ "$status" = "processing" ]; then
elif _contains "$status" "processing"; then
_info "Processing, The CA is processing your order, please just wait. ($waittimes/$MAX_RETRY_TIMES)"
else
_err "$d:Verify error:$response"
Expand All @@ -5029,7 +5054,7 @@ $_authorizations_map"
_sleep 2
_debug "checking"

_send_signed_request "$uri"
_send_signed_request "$_authz_url"

if [ "$?" != "0" ]; then
_err "$d:Verify error:$response"
Expand Down
Loading