Encryption failed: File exists

Hi all,

I’m running Gpg4win 2.2.4 on Windows 7 32-bit and I’m having problems encrypting a zip file.

I have my private key under “My Certificates” but when I go to encrypt the file it displays “Encryption failed” and if I expand to show details it says “File exists”.

Any ideas what this means?



Hi Rik,

maybe http://wiki.gnupg.org/TroubleShooting helps.

Note that for encryption, you only need the certificate of the recipient.


Hi Bernhard,

Thanks for the info.

OK, so I was able to encrypt under the recipient’s key.

But now I need to sign under my key and when I attempt to sign the encrypted file I get “Signing failed File exists”.

I’m trying to sign this encrypted file with an X.509 certificate.



Hi Rik,
for diagnostic reasons: Try to sign a file on the command line with gpgsm
and some of its debugging flags to see what the problem is.

Best Regards,
ps.: Flattr Gpg4win at https://flattr.com/thing/2053326,
if you appreciate this answer and my work within the Gpg4win Initiative.