|
|
@ -1,7 +1,8 @@ |
|
|
|
#!/usr/bin/env sh |
|
|
|
# |
|
|
|
#Author: lebaned |
|
|
|
#Report Bugs here: https://github.com/lebaned/acme.sh |
|
|
|
# DNS API for Versio.nl |
|
|
|
# Author: lebaned <github@bakker.cloud> |
|
|
|
# Report Bugs here: https://github.com/lebaned/acme.sh |
|
|
|
# |
|
|
|
######## Public functions ##################### |
|
|
|
|
|
|
@ -13,7 +14,6 @@ dns_versio_add() { |
|
|
|
_debug fulldomain "$fulldomain" |
|
|
|
_debug txtvalue "$txtvalue" |
|
|
|
|
|
|
|
|
|
|
|
if ! _get_credentials; then |
|
|
|
return 1 |
|
|
|
fi |
|
|
@ -71,9 +71,9 @@ dns_versio_rm() { |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|
_info fulldomain "$fulldomain" |
|
|
|
_info _domain "$_domain" |
|
|
|
_info _sub_domain "$_sub_domain" |
|
|
|
_debug fulldomain "$fulldomain" |
|
|
|
_debug _domain "$_domain" |
|
|
|
_debug _sub_domain "$_sub_domain" |
|
|
|
|
|
|
|
if ! _get_dns_records "$_domain"; then |
|
|
|
_err "invalid domain" |
|
|
@ -96,8 +96,6 @@ dns_versio_rm() { |
|
|
|
|
|
|
|
#################### Private functions below ################################## |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#_acme-challenge.www.domain.com |
|
|
|
#returns |
|
|
|
# _sub_domain=_acme-challenge.www |
|
|
@ -163,7 +161,6 @@ _versio_rest() { |
|
|
|
_debug ep "$ep" |
|
|
|
|
|
|
|
VERSIO_API_URL="https://www.versio.nl/api/v1" |
|
|
|
|
|
|
|
VERSIO_CREDENTIALS_BASE64=$(printf "%s:%s" "$Versio_Username" "$Versio_Password" | openssl enc -base64) |
|
|
|
|
|
|
|
export _H1="Accept: application/json" |
|
|
@ -208,7 +205,6 @@ _get_credentials() { |
|
|
|
_err "Example:" |
|
|
|
_err "export Versio_Username=[email address]" |
|
|
|
_err "export Versio_Password=[password]" |
|
|
|
_err "Please create you key and try again." |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
return 0 |
|
|
|