Fwd: GPGME status callback not working for need entropy

2018-08-23 Thread Jacob Adams
Resending with a compressed log file since it ended up way bigger than I expected. Forwarded Message Subject: Re: GPGME status callback not working for need entropy Date: Thu, 23 Aug 2018 16:54:13 -0400 From: Jacob Adams To: gnupg-users@gnupg.org On 08/22/2018 04:38 AM

GPGME status callback not working for need entropy

2018-08-01 Thread Jacob Adams
I've been trying to use the GPGME status callback to get an indication of when the system is low on entropy, but I don't seem to get a callback when such an even occurs. I've enabled full status and I get Pinentry Launched status messages, so it seems to sort of be working. When generating a key

Second unexplained pinentry when generating subkeys with GPGME

2018-07-27 Thread Jacob Adams
When generating a new GPG master key and some subkeys with GPGME I noticed some odd behavior. I get a second passphrase pinentry when generating the first subkey and I don't know why. I initially thought it was for creating the automatic revocation certificate, as it doesn't seem to happen if I

Re: GPGME python bindings query

2018-07-13 Thread Jacob Adams
(Redirecting to -users since that seems more appropriate) On 07/12/2018 10:42 PM, Ben McGinnes wrote: > On Tue, Jul 10, 2018 at 01:01:10PM -0400, Jacob Adams wrote: >> I would prefer to use the automatically generated certificate as it >> also comes with some useful e

Re: Pinentry: Inappropriate ioctl for device when getting smartcard PIN

2018-07-05 Thread Jacob Adams
On 07/04/2018 01:23 PM, Werner Koch wrote: > Hi! > > Are you setting the homedir in your code also for the Assuan context? > That might explain the behaviour. I had been manually setting the Assuan context's homedir to ~/.gnupg by accident (Was originally using a temporary directory, but that

Re: Pinentry: Inappropriate ioctl for device when getting smartcard PIN

2018-07-03 Thread Jacob Adams
On 06/29/2018 07:45 PM, Jacob Adams wrote: > On 06/27/2018 04:50 PM, Jacob Adams wrote: >> I've got another pinentry problem unfortunately. >> The tty is owned by the correct user this time and $GPG_TTY is set >> correctly. >> >> I have two gpgme contexts, one f

Re: Generating NIST/Brainpool subkeys with GPGME

2018-07-02 Thread Jacob Adams
On 07/02/2018 02:37 AM, Werner Koch wrote: > On Fri, 29 Jun 2018 22:07, tookm...@gmail.com said: >> It appears that one cannot currently generate NIST or Brainpool subkeys >> with GPGME. Using GPG itself works fine with --expert, so am I missing >> an option or is this simply not possible yet? >

Re: Pinentry: Inappropriate ioctl for device when getting smartcard PIN

2018-06-29 Thread Jacob Adams
On 06/27/2018 04:50 PM, Jacob Adams wrote: > I've got another pinentry problem unfortunately. > The tty is owned by the correct user this time and $GPG_TTY is set > correctly. > > I have two gpgme contexts, one for openpgp and another for assuan > commands to the smartcard.

Generating NIST/Brainpool subkeys with GPGME

2018-06-29 Thread Jacob Adams
It appears that one cannot currently generate NIST or Brainpool subkeys with GPGME. Using GPG itself works fine with --expert, so am I missing an option or is this simply not possible yet? I've attached a simple test program and the output I get on my machine is below: ./eccsubkeys rsa1024 GPGME

Pinentry: Inappropriate ioctl for device when getting smartcard PIN

2018-06-27 Thread Jacob Adams
I've got another pinentry problem unfortunately. The tty is owned by the correct user this time and $GPG_TTY is set correctly. I have two gpgme contexts, one for openpgp and another for assuan commands to the smartcard. Pinentry triggered by the openpgp context works perfectly, but any pinentry

Re: Pinentry: Permission Denied

2018-06-12 Thread Jacob Adams
On 06/03/2018 07:22 PM, gn...@raf.org wrote: > Jacob Adams wrote: > >> I've been getting the occasional "Pinentry: Permission Denied" error >> when generating new keys with GPGME and leaving pinentry to get the >> password instead of passing it directl

Pinentry: Permission Denied

2018-06-01 Thread Jacob Adams
I've been getting the occasional "Pinentry: Permission Denied" error when generating new keys with GPGME and leaving pinentry to get the password instead of passing it directly (passphrase=True with the python bindings). Typically a reboot will fix it but it's rather odd. I've attached a couple

Re: Problem signing git commits with smartcard key

2018-05-31 Thread Jacob Adams
On 05/31/2018 10:12 AM, koo...@spacekookie.de wrote: > Hey there, > > I have a yubikey 4 that contains my GPG key. I can use the `gpg2` tool to > sign messages without problems. But when I try to do the same with git, it > fails. The command that git runs internally is equivalent to this: > >

Re: GPGME export secret subkeys

2018-05-31 Thread Jacob Adams
On 05/30/2018 02:00 PM, Werner Koch wrote: > On Wed, 30 May 2018 17:22, tookm...@gmail.com said: >> GPGME has export and import functions that work well as alternatives to >> "gpg --import" and "gpg --export". However, looking through the >> documentation I cannot find an equivalent to "gpg >>

GPGME export secret subkeys

2018-05-30 Thread Jacob Adams
GPGME has export and import functions that work well as alternatives to "gpg --import" and "gpg --export". However, looking through the documentation I cannot find an equivalent to "gpg --export-secret-subkeys". Have I missed something, or does such functionality not yet exist? Thanks, Jacob

GPGME progress callback no current or total

2018-05-15 Thread Jacob Adams
I was testing the progress callback of GPGME in python and got some strange results. I'm using GPGME v1.11.1 $ cat progresstest.py import gpg, tempfile # Borrowed from callbacks.py def progress_stdout(what, type, current, total, hook=None): print("PROGRESS UPDATE: what = %s, type =

Re: smartcards and GPGME

2018-05-15 Thread Jacob Adams
On 05/14/2018 02:02 AM, Andre Heinecke wrote: > Hi, > > On Sunday, May 13, 2018 6:26:04 PM CEST Jacob Adams wrote: >> As part of a program I'm writing this summer for GSoC, I'd like to be >> able to both move gpg private keys to a smartcard and generate keys on

smartcards and GPGME

2018-05-13 Thread Jacob Adams
Hello all, As part of a program I'm writing this summer for GSoC, I'd like to be able to both move gpg private keys to a smartcard and generate keys on the smartcard from an application. While this can be done from gpg, it doesn't look like I can do so from GPGME or any other wrappers that exist.

Re: Python Bindings for GPGME

2018-05-08 Thread Jacob Adams
> On May 8, 2018, at 00:16, Yugesh Kothari wrote: > > Hello all, > > I'm looking to write a GUI around the existing philosophy-of-use of EasyGnuPG > (https://github.com/EasyGnuPG/egpg) as part of my GSoC project this summers. > I was therefore looking to find the

PGP Clean Room GSoC Mentoring

2018-02-26 Thread Jacob Adams
Hello all, I'm a prospective student for Debian's Google Summer of Code 2018 and I am interested in working on a project that may be of interest to those on this mailing list and that requires at least one more co-mentor to move forward. The biggest hurdle I faced when setting up my GPG key was