rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
194 stars 55 forks source link

Improve input type detection during signature/key import. #1065

Closed ni4 closed 3 years ago

ni4 commented 4 years ago

Description

When rnp checks imported contents, it relies on PUBLIC KEY/SIGNATURE armor header. However, GnuPG uses PUBLIC KEY header for exported key revocation, causing the importing error when rnpkeys --import revcert.asc command is issued.

rrrooommmaaa commented 3 years ago

Do we have a sample revcert.asc file in `tests/data'?

ni4 commented 3 years ago

@rrrooommmaaa There is revocation signature available at data/test_key_validity/alice-rev.pgp, just make sure to enarmor it with correct (public key) headers.

ni4 commented 3 years ago

Fixed via https://github.com/rnpgp/rnp/pull/1309