Using pass on windows with msys2 and git: problems with carriage return

Maximilian Nöthe maximilian.noethe at tu-dortmund.de
Thu Dec 22 22:17:47 CET 2016


Hi all,

I tried to use pass on windows today together with msys2 and git for 
windows.
I didn't work at first with a rather misleading error message ("no 
public key found"), because
of a \r\n line ending in the .gpg-id file in the .password-store 
directory which was introduced
by git for windows (checkout windows-style line endings / commit unix 
style line endings).

This resulted in the following call:

gpg2 -e -r $'maximilian.noethe at tu-dortmund.de\r' -o 
/home/maxnoe/.password-store/test.gpg --quiet --yes --compress-algo=none 
--no-encrypt-to --batch --use-agent

As you can see, there is a \r in the gpg id which leads to the missing 
public key error.

Maybe it's worth to strip away whitespace from the content read from the 
.gpg-id file.

Cheers
Maximilian Nöthe

-- 
PHD candidate
Astroparticle Physics
TU Dortmund

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161222/93ed0541/attachment.html>


More information about the Password-Store mailing list