-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: actpub action: commit revision: path_from: revision_from: 6cd4fb89e57b8e7dccac3573e2b6464320f787ef: path_to: revision_to:
commit 6cd4fb89e57b8e7dccac3573e2b6464320f787ef Author: epoch <epoch@thebackupbox.net> Date: Wed Mar 22 10:27:27 2023 +0000 fix a few messages, remove old comments diff --git a/ap-verifysignature b/ap-verifysignature
--- a/ap-verifysignature +++ b/ap-verifysignature @@ -10,19 +10,18 @@ if [ "$HTTP_DIGEST" ];then #don't bother to verify digest against something that logger "DIGESTS MATCH. FUCK YEAH" fi else - logger "No digest to compare. going to continue to verify (likely) GET request." + logger "No digest to compare. going to continue to verify (likely) GET request. (actual request method: $REQUEST_METHOD)" fi export HTTP_REQUEST_TARGET="$(printf "%s\n" "${REQUEST_METHOD}" | tr 'A-Z' 'a-z') ${REQUEST}" export HTTPSIG_KEYID="$(csv "$HTTP_SIGNATURE" keyId | jq -r)" -logger "attempting to verify message to inbox from $HTTPSIG_KEYID ..." +logger "attempting to verify message to ${REQUEST} from $HTTPSIG_KEYID ..." export HTTPSIG_HEADERS="$(csv "$HTTP_SIGNATURE" headers | jq -r)" export HTTPSIG_SIG="$(csv "$HTTP_SIGNATURE" signature | jq -r)" logger $HTTPSIG_HEADERS -### this should probably get cached ofc, but cbf atm sha256="$(printf "%s\n" "${HTTPSIG_KEYID}" | sha256sum | cut '-d ' -f1)" mkdir -p ~/.cache/ap/pubkeys/ pubkey_cache_file=~/.cache/ap/pubkeys/"${sha256}" @@ -30,11 +29,6 @@ if [ ! -e "${pubkey_cache_file}" ];then ap-getpubkey "${HTTPSIG_KEYID}" > "${pubkey_cache_file}" fi -### don't actually need to use a variable, since we're leaving it in a cache file anyway -### and openssl actually prefers it to be in a file -#pubkey="$(cat "$pubkey_cache_file")" - - logger "GRABBED PUBKEY: $(cat "${pubkey_cache_file}")"
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 15:40:31 2024