From 4b86c149e7ac5f430ba4799b31cfc323d8336433 Mon Sep 17 00:00:00 2001 From: Blake Mackey Date: Mon, 26 Mar 2018 20:06:31 -0400 Subject: [PATCH] Update to use openssl base64 vs native base64 Not all systems use base64 (read pfSense) Instead of using `base64`, they should use `/usr/bin/openssl base64 -e` Ref: https://www.reddit.com/r/PFSENSE/comments/87477p/trying_to_issue_acme_cert_base64_not_found/ --- dnsapi/dns_namecom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_namecom.sh b/dnsapi/dns_namecom.sh index b712fa94..4f39047a 100755 --- a/dnsapi/dns_namecom.sh +++ b/dnsapi/dns_namecom.sh @@ -123,7 +123,7 @@ _namecom_login() { # Auth string # Name.com API v4 uses http basic auth to authenticate # 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 retcode=$(printf "%s\n" "$response" | _egrep_o "\"username\"\:\"$Namecom_Username\"")