public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* more notes pinentry
@ 2020-08-05 15:53 David Dombrowsky
  0 siblings, 0 replies; only message in thread
From: David Dombrowsky @ 2020-08-05 15:53 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 1391 bytes --]


I've had an ongoing saga of trying to get gpg2's pinentry to work on the
console, via an SSH session, without requiring a console window.

I just tried rebuilding and testing from the latest git repo, and I
still receive the same error:

$ echo test | gpg -sab
gpg: using "01D5A625A30C0E6A" as default secret key for signing
gpg: signing failed: Operation cancelled
gpg: signing failed: Operation cancelled

The "Operation cancelled" comes from some command it's sending to the
tty and that's failing.  I haven't looked into it more than that.  It
isn't a system limitation, as `ssh-add` can prompt for a password all day.

As an admittedly insecure work-around, I've forked the code and added
something that will read the password from a file in the home directory.
 This is obviously sub-optimal, but it works.  Since I sign every git
commit and I'm the only user of this machine, it's a reasonable risk to
take to allow me to conveniently sign my commits.

The fork is here, in case anyone cares:

https://github.com/ddombrowsky/pinentry/commits/secretfile


If anyone has any opinions as to the real root cause, I'd be willing to
look into it more.

-- 
David Dombrowsky | Chief Software Engineer
6th Street Radio LLC | 6thstreetradio.org | 518-374-3204
https://www.linkedin.com/in/david-dombrowsky-94334415
V2VkIEF1ZyAgNSAwMjoxMzowMiBFRFQgMjAyMAo=


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-05 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 15:53 more notes pinentry David Dombrowsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).