-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: actpub
action: blob
revision:
path_from: ap-getpubkey
revision_from: refs/heads/master:
path_to:
revision_to:

git.thebackupbox.net

actpub

git://git.thebackupbox.net/actpub

blob of:

actpub

/ ap-getpubkey

refs/heads/master:/ap-getpubkey
 #!/usr/bin/env bash
 keyuri="$1"
 if [ ! "$1" ];then
   printf "Usage: ap-getpubkey <key-uri>\n" >&2
   exit 1
 fi

 ### this needs to be a signed request for some hosts so... I guess we
 ### will probably give the server itself a key it can use.
 ap-signed-get "$keyuri" \
 	| jq -r '. | to_entries | .[].value | select(if type == "object" then . else null end) | select(if .id == "'"${keyuri}"'" then . else null end) | .publicKeyPem'

-- Response ended

-- Page fetched on Sun Jun 2 18:23:17 2024