Comments (11)
Could you please run trezor-gpg -v agent &
before running gpg2 -v --sign
, and post both the outputs?
If it's possible, I would be happy if you could use https://asciinema.org/ to record a screencast of the failure...
from trezor-agent.
[fansari@bat ~]$ trezor-gpg -v agent &
[1] 8523
[fansari@bat ~]$ 2016-09-04 18:20:42,905 DEBUG serving on SSH_AUTH_SOCK=/home/fansari/.gnupg/S.gpg-agent
2016-09-04 18:20:42,905 DEBUG waiting for connection on /home/fansari/.gnupg/S.gpg-agent
[fansari@bat ~]$ gpg2 -v --sign
gpg: using pgp trust model
gpg: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg: waiting for the agent to come up ... (5s)
gpg: connection to agent established
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
from trezor-agent.
It seems that the trezor-agent listens on a different socket than the GPG binary is connecting to.
Could you please run:
$ gpgconf --list-dirs
to see where GPG tries to connect to?
BTW, which GPG version are you using?
from trezor-agent.
[fansari@bat ~]$ gpgconf --list-dirs
sysconfdir:/etc/gnupg
bindir:/usr/bin
libexecdir:/usr/libexec
libdir:/usr/lib64/gnupg
datadir:/usr/share/gnupg
localedir:/usr/share/locale
dirmngr-socket:/run/user/1000/gnupg/S.dirmngr
dirmngr-sys-socket:/var/run/gnupg/S.dirmngr
agent-socket:/run/user/1000/gnupg/S.gpg-agent
homedir:/home/fansari/.gnupg
[fansari@bat ~]$ rpm -qf /usr/bin/gpgconf
gnupg2-2.1.13-2.fc24.x86_64
[fansari@bat ~]$ rpm -qf /usr/bin/gpg2
gnupg2-2.1.13-2.fc24.x86_64
from trezor-agent.
Could you please update trezor-agent
to the latest version from GitHub, to include 05fada9 (which solved issue #24)?
from trezor-agent.
I did a "git pull" and rebuilt and reinstalled the software but the result was still the same.
As far as I could see your changes are only in the master branch. I am using the ledger branch.
from trezor-agent.
Oops, you're right - I forgot to merge it back to master...
from trezor-agent.
OK - then tell me when it will be availbale in the ledger branch. I will test again then.
from trezor-agent.
Please take a look :)
from trezor-agent.
Seems to work. I have tested this:
echo "Hello World!" | gpg2 -v --sign > bla
Now "bla" is some binary file which I can verify.
[fansari@bat trezor-agent]$ gpg2 --verify bla
gpg: Signature made Mon 05 Sep 2016 09:35:19 PM CEST using ECDSA key ID 754A6607A3732797
gpg: Good signature from "Frank Ansari <[email protected]>" [ultimate]
[fansari@bat trezor-agent]$ gpg2 --decrypt bla
Hello World!
gpg: Signature made Mon 05 Sep 2016 09:35:19 PM CEST using ECDSA key ID 754A6607A3732797
gpg: Good signature from "Frank Ansari <[email protected]>" [ultimate]
Encryption does also work:
[fansari@bat trezor-agent]$ echo "Hello World" | gpg2 --encrypt --sign > blubber
[fansari@bat trezor-agent]$ gpg2 --decrypt blubber
=> 80020001150580000011e6b3e66786b80266e3c993d5a9287133
<= 41048d4b51660dfe3420d0107f449c9d4ac6b8b490872071f7008af1aaa0e341d53f917a976b676acdf9793ce67b5e5cd182073ba258eb04cf62a932b2cec87debe89000
2016-09-05 21:43:15,404 INFO GPG public key nist256p1/67880C94 created at 2016-09-03 15:38:25 for "Frank Ansari <[email protected]>"
=> 800a0001560580000011e6b3e66786b80266e3c993d5a928713304bc1a3163bf98cb6b37952e91981849fcfcda24a29039a0775b852b33f0ed3327507e03d51cb9ae82a40076ab2b3cc09b01d1bbed2d6b2fee630c2e7f6f092a29
<= 049b02f9ac04f996368f63ffe581264a39627266958a685ac3f8c7962fc450cd95710c6857d12d237bfe89548d2ce08c9a23567eac8fc126cf0d45c52f6c900f139000
gpg: encrypted with 256-bit ECDH key, ID A9B2340367880C94, created 2016-09-03
"Frank Ansari <[email protected]>"
Hello World
gpg: Signature made Mon 05 Sep 2016 09:42:36 PM CEST using ECDSA key ID 754A6607A3732797
gpg: Good signature from "Frank Ansari <[email protected]>" [ultimate]
Thank you!
from trezor-agent.
Great!
You're welcome :)
from trezor-agent.
Related Issues (20)
- KeepKey device defined as a Trezor device HOT 2
- package_name returns package names that differ from PyPI
- Rename NotFoundError exception to DeviceNotFoundError HOT 1
- ECDH curve hard-coded HOT 2
- Apply consistent style to imports in the hardware device agent scripts HOT 1
- Please enable discussions HOT 2
- [Suggestion] Use concurrency tag for GitHub workflows HOT 2
- Trezor session can't be reset if trezor-aegnt crashes or is killed during input HOT 2
- Unable to generate new GPG primary key HOT 8
- gpg addkey hangs for 2 days HOT 4
- gpg: signing failed: End of file HOT 4
- [gpg] Unable to init gpg identity HOT 4
- Invalid status 6a80 (Unknown reason)) communicating with LedgerNanoS
- protobuf issue with keepkey_agent 0.9.0
- ledger-agent <hostname> -vs fails to sign key HOT 6
- trezor-gpg-agent + pass + aws-vault does not work
- Unexpected behavior of trezor-gpg-agent after `trezorctl clear-session` call
- Risk of pip Typosquatting attack HOT 2
- doesnt work in windows
- on wsl ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trezor-agent.