Skip to content

Instantly share code, notes, and snippets.

@sovedus
Created August 13, 2025 10:06
Show Gist options
  • Select an option

  • Save sovedus/991d3a809ed5a476ff2410476422ae5d to your computer and use it in GitHub Desktop.

Select an option

Save sovedus/991d3a809ed5a476ff2410476422ae5d to your computer and use it in GitHub Desktop.
#!/bin/bash
KEYID="$1"
gpg --export-secret-keys "$KEYID" > private.gpg
gpg --export "$KEYID" > public.gpg
gpg --output revoke.asc --gen-revoke "$KEYID"
echo "$KEYID" > key.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment