[pkg-gnupg-maint] Bug#830658: gpg-agent's ssh-agent functionality

brian m. carlson sandals at crustytoothpaste.net
Tue Aug 30 01:59:30 UTC 2016


On Mon, Aug 29, 2016 at 02:47:03PM -0400, Daniel Kahn Gillmor wrote:
> So i'm a bit confused about why the prompting isn't being done correctly
> for Norbert, and why libsecret isn't connected for Brian.  Norbert and
> Brian, can you report what you see for:
> 
>     gpg-connect-agent 'getinfo std_startup_env' /bye
> 
> When you have the systemd user service enabled after a clean login?
> 
> Can you also try this sort of direct debugging of pinentry?

Okay, here's what I've got:

genre ok % gpg-connect-agent 'getinfo std_startup_env' /bye
OK

genre ok % echo getpin | env -i DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=/run/user/1000/bus pinentry
OK Pleased to meet you

** (pinentry:4864): WARNING **: couldn't create prompt for gnupg passphrase: Address element '/run/user/1000/bus' does not contain a colon (:)
ERR 83886179 Operation cancelled <Pinentry>

genre ok % set |grep -a DBUS
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-cuRTQOMM9V,guid=13a091ac51e469798129363057c4e491'

genre ok % echo getpin | env -i DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS pinentry
OK Pleased to meet you
D 123456
OK

# Saving a passphrase here makes this work automatically when run for a
# second time.
genre ok % env -i DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS pinentry <<EOF
option allow-external-password-cache
setkeyinfo testkey-for-pinentry
getpin
EOF

OK Pleased to meet you
OK
OK
D 123456
OK

I don't have dbus-user-session installed.  Based on the description of
the package, I don't think I want it installed, either.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20160830/dc58d1ac/attachment-0001.sig>


More information about the pkg-gnupg-maint mailing list