passphrase-fd works on linux but not windows

Frank Calfo frank.calfo@csgpro.com
Sat Sep 27 00:16:02 CEST 2003


Hi All,

I'm using gpg 1.2.1 on Linux and Windows for key-based encryption using a 
keystore that is passphrase protected

I'm passing in the keystore passphrase via the passphrase-fd 0 strategy

This command successfully encrypts a file when running on Linux:
   echo $1 | gpg --homedir $2 --batch --yes --passphrase-fd 0 
--always-trust --encrypt --sign --recipient $3 $4

but the mirror of this does not work when running on Windows 2000 - it 
keeps returning error: bad passphrase (even though passphrase passed in is 
correct)
   echo %1 | gpg --homedir %2 --batch --yes --passphrase-fd 0 
--always-trust --encrypt --sign --recipient %3 %4


Is there something about using the passphrase-fd 0 option to send in the 
KEYSTORE (not encryption) passphrase that it works under Linux but not 
Windows ?

Thanks!





More information about the Gnupg-users mailing list