Skip to content

Instantly share code, notes, and snippets.

@tjstebbing
Created April 5, 2024 13:04
Show Gist options
  • Save tjstebbing/6bde10d9fec4d11b58643d7abfb7c35f to your computer and use it in GitHub Desktop.
Save tjstebbing/6bde10d9fec4d11b58643d7abfb7c35f to your computer and use it in GitHub Desktop.

ssh-keygen -Y sign -f ~/.radicle/keys/radicle -n "my@id"

#!/bin/bash

PHRASE="Hello! I might be a DID"
echo "$PHRASE" | ssh-keygen -Y sign -f ~/.radicle/keys/radicle -n "my@id" > test.sig

echo "my@id $(cat ~/.radicle/keys/radicle.pub)" > allowed_keys

echo "$PHRASE" | ssh-keygen -Y verify -f allowed_keys -s test.sig -I "my@id" -n "my@id"

rm test.sig
rm allowed_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment