mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 22:34:05 -07:00
ACME registration fix
This commit is contained in:
parent
ae328a0935
commit
06a8f7d88a
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ fi
|
|||
|
||||
|
||||
# Requesting ACME nonce
|
||||
nonce=$(curl -s -I "$API/directory" |grep -i nonce |cut -f2 -d\ |tr -d '\r\n')
|
||||
nonce=$(curl -s -I "$API/acme/new-nonce" |grep -i nonce |cut -f2 -d\ |tr -d '\r\n')
|
||||
|
||||
# Creating ACME account
|
||||
url="$API/acme/new-acct"
|
||||
|
@ -113,7 +113,7 @@ kid=$(echo "$answer" |grep -i location: |cut -f2 -d ' '|tr -d '\r')
|
|||
|
||||
# Checking answer status
|
||||
status=$(echo "$answer" |grep HTTP/ |tail -n1 |cut -f2 -d ' ')
|
||||
if [[ "${status:0:2}" -ne "20" ]]; then
|
||||
if [[ "${status:0:2}" -ne "valid" ]]; then
|
||||
check_result $E_CONNECT "Let's Encrypt acc registration failed $status"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue