Problems using gnupg

Bernhard Reiter bernhard at intevation.de
Wed Sep 10 09:14:32 CEST 2014


Hi Eva,

On Tuesday 09 September 2014 at 12:48:27, Eva Suarez wrote:
> I'm trying to develop a script in python that decrypt a file with the
> extension .zip.pgp, and I found that I have to use gnupg.

which gpgme python wrapper are you using? pyme or pygpgme?
You probably should use one of them, see http://wiki.gnupg.org/APIs

> But I'm having trouble, because I don't understand why the log say de
> process was ok, but I can find de decrypted file. The log is the following:

Can you decrypt on the command line?
Note that there must be a way your private certificate is unlocked,
the standard procedure may be to use an empty passphrase.

> [GNUPG:] NO_SECKEY XXXXXXXXXXXXXX
> gpg: encrypted with 2048-bit RSA key, ID 4XXXXX, created 2014-05-12
>       user <tuser at xxx.com>"
> [GNUPG:] BEGIN_DECRYPTION
> [GNUPG:] DECRYPTION_INFO 2 9
> [GNUPG:] PLAINTEXT XXXXXX file.zip
> [GNUPG:] PLAINTEXT_LENGTH 40384
> [GNUPG:] DECRYPTION_OKAY
> [GNUPG:] GOODMDC
> [GNUPG:] END_DECRYPTION

Best,
Bernhard


-- 
www.intevation.de/~bernhard (CEO)    www.fsfe.org (Founding GA Member)
Intevation GmbH, Osnabrück, Germany; Amtsgericht Osnabrück, HRB 18998
Owned and run by Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20140910/2bd73283/attachment.sig>


More information about the Gnupg-users mailing list