kbpgp icon indicating copy to clipboard operation
kbpgp copied to clipboard

Load Multiple Keys

Open dsanghan opened this issue 8 years ago • 1 comments

Is there a way to load multiple keys at once from a .gpg file?

If its armored ascii, I'm currently splitting it up into individual keys and loading it using import_from_armored_pgp

If its a single encoded unarmored key, i'm using import_from_pgp_message.

Can't figure out what to do about loading multiple unarmored keys from a .gpg file?

dsanghan avatar May 20 '17 07:05 dsanghan

Also, when exporting a keyring from gpg using gpg --armor --export > keys.asc , it exports multiple keys within a single armored block, this also seems to be a little troublesome to deal with. Maybe the best solution is import_from_armored_pgp should callback with an array of imported keys / have another import_from_data that parses the packets and extracts all the keys.

dsanghan avatar May 20 '17 07:05 dsanghan