ENH make gpg key importer actually import

This commit is contained in:
Nathan Dwarshuis 2022-08-02 22:29:46 -04:00
parent 85bc2c1cba
commit de8e5ee7d4
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
# WIP, idea is to use this get request to pull a key manually without using gpg itself...seems to work better # Import gpg keys using https protocol
curl -L -o test.key 'https://keyserver.ubuntu.com/pks/lookup?search=0xC5705533DA4F78D8664B5DC0575159689BEFB442&op=get' #
# usage:
# gpg-recv-keys KEYHASH
keypath=/tmp/this.key
curl -L -o "$keypath" "https://keyserver.ubuntu.com/pks/lookup?search=0x$1&op=get"
gpg --import "$keypath"
rm -f "$keypath"