Giter Club home page Giter Club logo

Comments (11)

romanz avatar romanz commented on June 14, 2024

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 avatar fansari commented on June 14, 2024
[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.

romanz avatar romanz commented on June 14, 2024

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 avatar fansari commented on June 14, 2024
[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.

romanz avatar romanz commented on June 14, 2024

Could you please update trezor-agent to the latest version from GitHub, to include 05fada9 (which solved issue #24)?

from trezor-agent.

fansari avatar fansari commented on June 14, 2024

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.

romanz avatar romanz commented on June 14, 2024

Oops, you're right - I forgot to merge it back to master...

from trezor-agent.

fansari avatar fansari commented on June 14, 2024

OK - then tell me when it will be availbale in the ledger branch. I will test again then.

from trezor-agent.

romanz avatar romanz commented on June 14, 2024

Please take a look :)

from trezor-agent.

fansari avatar fansari commented on June 14, 2024

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.

romanz avatar romanz commented on June 14, 2024

Great!
You're welcome :)

from trezor-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.