-- 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: c57d6e29db1cdd71c46aa01ceb8c14591e8d5eea: path_to: revision_to:
commit c57d6e29db1cdd71c46aa01ceb8c14591e8d5eea Author: epoch <epoch@thebackupbox.net> Date: Wed Mar 22 02:29:54 2023 -0500 ap-signed-post with ap-create-note works now diff --git a/ap-signed-post b/ap-signed-post
--- a/ap-signed-post +++ b/ap-signed-post @@ -9,7 +9,7 @@ fi uri="$1" host="$(uricut -d <<< "${uri}")" -target_inbox_path="$(uricut -p <<< "${turi}")" +uri_path="$(uricut -p <<< "${uri}")" HTTPSIG_ALGO="rsa-sha256" # slower HTTPSIG_KEYID="$(ap-getactor "$(ap-whoami)" | jq -r .publicKey.id)" @@ -19,7 +19,7 @@ HTTPSIG_HEADERS="(request-target) host date digest content-type" HTTP_DATE="$(rfc7231date)" HTTP_DIGEST="SHA-256=$(printf "%s" "$POST_DATA" | openssl sha256 | cut '-d ' -f2- | xxd -r -p | base64)" -SIGNED_STRING="(request-target): post ${target_inbox_path} +SIGNED_STRING="(request-target): post ${uri_path} host: $host date: $HTTP_DATE digest: $HTTP_DIGEST @@ -28,16 +28,16 @@ content-type: $CONTENT_TYPE" HTTPSIG_SIGNATURE="$(openssl dgst -sha256 -sign ~/.config/ap/private.pem <(printf "%s" "${SIGNED_STRING}") | base64 | tr -d '\n')" HTTP_SIGNATURE='keyId="'"${HTTPSIG_KEYID}"'",algorithm="'"${HTTPSIG_ALGO}"'",headers="'"${HTTPSIG_HEADERS}"'",signature="'"${HTTPSIG_SIGNATURE}"'"' -printf "ap-signed-post: doing a curl to : %s\n" "$target_inbox" >&2 +printf "ap-signed-post: doing a curl to : %s\n" "$uri" >&2 curl -i \ - --data_raw="${POST_DATA}" \ + --data-raw "${POST_DATA}" \ -A "https://git.thebackupbox.net/actpub/ (epoch's fault)" \ -H "Accept: application/activity+json" \ -H "Signature: $HTTP_SIGNATURE" \ -H "Date: $HTTP_DATE" \ -H "Digest: $HTTP_DIGEST" \ -H "Content-Type: $CONTENT_TYPE" \ - -g "$target_inbox" + -g "$uri" ### ... and here echo 'ap-signed-post: [DONE]' >&2
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 16:49:24 2024