passphrase-fd works on linux but not windows

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


That did it!  Thanks for the quick response!

At 05:32 PM 9/26/2003 -0400, Todd wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Frank Calfo wrote:
> > 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
>
>I recall reading sometime back on this list that on windows you need to put
>the | directly after the passphrase. Windows apparently sends the trailing
>space along to gnupg, which will make it a bad passphrase.  So try something
>like this:
>
>     echo %1| gpg --homedir %2 --batch --yes --passphrase-fd 0 \
>         --always-trust --encrypt --sign --recipient %3 %4
>- --
>Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
>============================================================================
>Politicians are interested in people. Not that this is always a virtue.
>Fleas are interested in dogs.
>     -- P.J. O'Rourke
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.3 (GNU/Linux)
>Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
>
>iD8DBQE/dLBruv+09NZUB1oRAhQQAKC2tI2z85ChyzpC7BACGkZkexp8rACfdoi5
>JnaOfSjDA95sQ/WJTwQCPkM=
>=hDRI
>-----END PGP SIGNATURE-----
>
>_______________________________________________
>Gnupg-users mailing list
>Gnupg-users@gnupg.org
>http://lists.gnupg.org/mailman/listinfo/gnupg-users





More information about the Gnupg-users mailing list