config:
GPGKEYID="0x..."
GITEA_URL="https://..."
GITEA_TOKEN=".." # for API access
KEYBASE_USER="..."
GITHUB_USER="..."
EMAIL=".."
-
- update:
gpg --export "${GPGKEYID}" | curl -T - https://keys.openpgp.org
- verify:
curl -s "https://keys.openpgp.org/vks/v1/by-keyid/${GPGKEYID}" | gpg --import-options show-only --import
- update:
-
sks keyserver
- update:
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys ${GPGKEYID}
- verify:
curl -s "http://www.sks-keyservers.net:11371/pks/lookup?op=get&search=${GPGKEYID}" | gpg --import-options show-only --import
- update:
-
Gitea (requires deleting old key first if only expiry changes)
- update: https://${GITEA_URL}/user/settings/keys
- via API:
jq -n --arg v "$(gpg --armor --export $GPGKEYID)" '{"armored_public_key": $v}' | curl -X POST "https://${GITEA_URL}/api/v1/user/gpg_keys?access_token=${GITEA_TOKEN}" -H "accept: application/json" -H "Content-Type: application/json" -d @-
- verify:
curl -s "https://${GITEA_URL}/api/v1/user/gpg_keys?access_token=${GITEA_TOKEN}" -H "accept: application/json" | jq ".[].expires_at"
-
keybase.io
- update:
keybase pgp update
-- not possible via web ui - verify:
curl -s https://keybase.io/${KEYBASE_USER}/pgp_keys.asc | gpg --import-options show-only --import
- update:
-
WKD
- update:
gpg --no-armor --export ${GPGKEYID} > ../.well-known/openpgpkey/hu/...
- verify:
gpg -v --auto-key-locate clear,wkd,nodefault --locate-key ${EMAIL}
- update:
-
update github.com (requires deleting old key first if only expiry changes)
- update: https://github.com/settings/keys
- via API:
jq -n --arg v "$(gpg --armor --export $GPGKEYID)" '{"armored_public_key": $v}' | curl -H "Content-Type: application/json" -X POST -d @- https://api.github.com/user/gpg_keys
- verify:
curl -s https://api.github.com/users/${GITHUB_USER}/gpg_keys | jq ".[].expires_at"
-
update facebook.com
- update: https://www.facebook.com/settings?tab=security§ion=public_key&view
- verify: -
-
refresh OpenKeyChain on android
-
refresh all other computers via
gpg -v --locate-external-keys "${EMAIL}"