Page MenuHome GnuPG

Sign file using a key empty passphrase
Closed, InvalidPublic

Description

When signing a file with a key that has an empty passphrase using python-gnupg the following code worked great using GPG4Win 2.2.6 but fails using 3.0.0 using Windows 7.

I have no issues with Debian unstable and gnupg 2.2.2 installed.

python
gpg = gnupg.GPG()
with open(filename, "rb") as signfile:
    signed_data = gpg.sign_file(signfile, keyid=keyid, detach=True)

I would expect a detached file signature to be created and no stderr to be generated.

Details

Version
3.0.0

Event Timeline

werner claimed this task.
werner added a subscriber: werner.

That does not look like a GnuPG or GPGME bug but more like an incompatibility in python-gnupg. Please report this to the maintainers of python-gnupg. I would have suggested to use the GPGME Python bindings but unfortunately we don't have a Windows version on them yet.

werner changed the task status from Resolved to Invalid.Nov 15 2017, 9:09 AM