From: Lukas Schauer Date: Fri, 8 Jan 2016 19:18:31 +0000 (+0100) Subject: changed urlbase64 helper to also use sed for character replacements X-Git-Url: https://git.street.me.uk/andy/dehydrated.git/commitdiff_plain/d760890c88031bcdfcf15f6cd7aa564b7a47c266 changed urlbase64 helper to also use sed for character replacements --- 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