gpg decrypt fails with unknown key
Posted on 2014-02-17
I am using gpg4win to encrypt files. I have three keys imported. I use a vbscript to encrypt and ftp files to vendors. Two of the keys work perfectly. The third fails when the vendor tries to decrypt. They receive an error : unknown key. We have confirmed the key is correct. If I encrypt using Kleopatra front end, everything works. When I use my VBS, they cannot decrypt. The same command works fine for the other vendors. Here is the command I am using:
comd = "cmd /C gpg -R <key> --always-trust --encrypt " & txtFile
Again, this command works for the other two vendors. And the key must be okay if it works in Kleopatra.