2022-07-21 19:26:29 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-02 22:29:46 -04:00
|
|
|
# Import gpg keys using https protocol
|
|
|
|
#
|
|
|
|
# usage:
|
|
|
|
# gpg-recv-keys KEYHASH
|
2022-07-21 19:26:29 -04:00
|
|
|
|
2022-08-02 22:29:46 -04:00
|
|
|
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"
|