[gnutls-help] openpgp and gnutls_privkey_import_openpgp
nmav at gnutls.org
Fri May 31 13:15:19 CEST 2013
On Fri, May 31, 2013 at 12:12 PM, Petr Vanek <petr at yarpen.cz> wrote:
>> I think then the issue is that this is an encrypted key. Encrypted
>> openpgp keys are not supported. You need to export it without a
>> password in order to use it with the gnutls functions.
> ah thanks!
> It works when I remove a password from the priv key by gpg.
> Nikos, just a question - how hard would be to add this (password
> protected key parsing) feature to gnutls? Where is the place where to
> start investigation: gnutls or nettle?
You should start from gnutls_openpgp_privkey_import(). Adding support
for password-protected files would require you possibly to modify the
opencdk/ part of the library, and possibly implement CFB mode of
decryption (that one would be best handled in nettle). Overall it
shouldn't be much of work.
More information about the Gnutls-help