mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 01:18:02 +08:00
gpg: rename GPG public key file
This commit is contained in:
@@ -233,7 +233,7 @@ def main():
|
||||
if args.armor:
|
||||
pubkey = armor(pubkey, 'PUBLIC KEY BLOCK')
|
||||
ext = '.asc'
|
||||
open(args.user_id + ext, 'wb').write(pubkey)
|
||||
open(s.hex_short_key_id() + ext, 'wb').write(pubkey)
|
||||
else:
|
||||
pubkey = load_from_gpg(args.user_id)
|
||||
s = Signer(user_id=user_id, created=pubkey['created'])
|
||||
|
||||
Reference in New Issue
Block a user