]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Updating nonce handler for newer versions of F5
authorjoele89 <32238188+joele89@users.noreply.github.com>
Mon, 22 Feb 2021 08:53:55 +0000 (19:53 +1100)
committerLukas Schauer <lukas@schauer.dev>
Sun, 21 Mar 2021 19:46:31 +0000 (20:46 +0100)
dehydrated

index 13cfee0f0039d928868fa6ebed82d2ed19482852..27549d98badedea3086e664505d16e8d950602f6 100755 (executable)
@@ -875,9 +875,9 @@ signed_request() {
 
   # Retrieve nonce from acme-server
   if [[ ${API} -eq 1 ]]; then
-    nonce="$(http_request head "${CA}" | grep -i ^Replay-Nonce: | awk -F ': ' '{print $2}' | tr -d '\n\r')"
+    nonce="$(http_request head "${CA}" | grep -i ^Replay-Nonce: | awk -F ':' '{print $2}' | tr -d ' \n\r')"
   else
-    nonce="$(http_request head "${CA_NEW_NONCE}" | grep -i ^Replay-Nonce: | awk -F ': ' '{print $2}' | tr -d '\n\r')"
+    nonce="$(http_request head "${CA_NEW_NONCE}" | grep -i ^Replay-Nonce: | awk -F ':' '{print $2}' | tr -d ' \n\r')"
   fi
 
   # Build header with just our public key and algorithm information