From d760890c88031bcdfcf15f6cd7aa564b7a47c266 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Fri, 8 Jan 2016 20:18:31 +0100 Subject: [PATCH] changed urlbase64 helper to also use sed for character replacements --- letsencrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt.sh b/letsencrypt.sh index 751c5e3..07d8b1d 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -129,7 +129,7 @@ _exiterr() { # Encode data as url-safe formatted base64 urlbase64() { # urlbase64: base64 encoded string with '+' replaced with '-' and '/' replaced with '_' - openssl base64 -e | tr -d '\n\r' | sed 's/=*$//g' | tr '+/' '-_' + openssl base64 -e | tr -d '\n\r' | sed -e 's:=*$::g' -e 'y:+/:-_:' } # Convert hex string to binary data