isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
424 stars 172 forks source link

GPGBase: Do not set a default pubring/secring #260

Open nbraud opened 5 years ago

nbraud commented 5 years ago

GnuPG will infer those from homedir, and newer versions of GnuPG (2.1.x and later, IIRC) do not store secret keys in secring.gpg but under private-keys-v1.d/.

This caused decryption failures for me, as the gpg subprocess couldn't find any private keys.