mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 05:14:12 +00:00
Merge 4b86c149e7ac5f430ba4799b31cfc323d8336433 into f0365d32aacabc5b6002ba18e6a22ad9b0696965
This commit is contained in:
commit
759900581c
@ -123,7 +123,7 @@ _namecom_login() {
|
|||||||
# Auth string
|
# Auth string
|
||||||
# Name.com API v4 uses http basic auth to authenticate
|
# Name.com API v4 uses http basic auth to authenticate
|
||||||
# need to convert the token for http auth
|
# need to convert the token for http auth
|
||||||
_namecom_auth=$(printf "%s:%s" "$Namecom_Username" "$Namecom_Token" | base64)
|
_namecom_auth=$(printf "%s:%s" "$Namecom_Username" "$Namecom_Token" | /usr/bin/openssl base64 -e)
|
||||||
|
|
||||||
if _namecom_rest GET "hello"; then
|
if _namecom_rest GET "hello"; then
|
||||||
retcode=$(printf "%s\n" "$response" | _egrep_o "\"username\"\:\"$Namecom_Username\"")
|
retcode=$(printf "%s\n" "$response" | _egrep_o "\"username\"\:\"$Namecom_Username\"")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user