C3S / redmine_openpgp

Redmine plugin for email encryption with the OpenPGP standard
GNU General Public License v3.0
19 stars 10 forks source link

Validate with all signing subkeys #12

Open garrettr opened 8 years ago

garrettr commented 8 years ago

Fixes #11.

This works, but is unfortunately affected by an issue in ruby-gpgme where it incorrectly reports that all subkeys have every capability (I just filed https://github.com/ueno/ruby-gpgme/issues/76 for this). This will not cause any breakage. It just means that until the ruby-gpgme issue is fixed, the identity comparison will compare the fingerprint of the key that generated the signature (s.fpr) against every subkey, instead of just the subkeys that have the sign capability, because ruby-gpgme currently incorrectly reports that every subkey has every capability.

Since GPG will only generate signatures from signing subkeys, I do not believe this will cause any problems in practice.