Problems to import and export private keys using GnuPG v2.

Werner Koch wk at gnupg.org
Thu Nov 23 14:42:40 CET 2006


On Thu, 23 Nov 2006 04:55, vini at fugspbr.org said:

> $ gpg --import private.pgp
> gpg: importing secret keys not allowed

#ifdef ENABLE_SELINUX_HACKS
    if (1)
      {
        /* We don't allow to import secret keys because that may be used
           to put a secret key into the keyring and the user might later
           be tricked into signing stuff with that key.  */
        log_error (_("importing secret keys not allowed\n"));
        return 0;
      }
#endif 

So you used

     --enable-selinux-support
                    This prevents access to certain files and won't
                    allow import or export of secret keys. 

with configure.  You need to build a second binary without that flag
and use that binary to import stuff.


Salam-Shalom,

   Werner






More information about the Gnupg-users mailing list