Advertisement
Guest User

Trezor GPG key init error

a guest
Sep 22nd, 2023
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.51 KB | Help | 0 0
  1. trezor-gpg init "muceua" -v
  2. 2023-09-22 15:23:57,059 WARNING      This GPG tool is still in EXPERIMENTAL mode, so please note that the API and features may change without backwards compatibility! [__init__.py:118]
  3. 2023-09-22 15:23:57,062 INFO         device name: trezor                                                                                  [__init__.py:126]
  4. 2023-09-22 15:23:57,062 INFO         GPG home directory: /home/muce/.gnupg/trezor                                                         [__init__.py:131]
  5. 2023-09-22 15:23:57,065 WARNING      NOTE: in order to re-generate the exact same GPG key later, run this command with "--time=0" commandline flag (to set the timestamp of the GPG key manually). [__init__.py:33]
  6. 2023-09-22 15:23:57,114 INFO         Enumerating UdpTransport: found 0 devices                                                            [__init__.py:138]
  7. 2023-09-22 15:23:57,116 INFO         Enumerating HidTransport: found 0 devices                                                            [__init__.py:138]
  8. 2023-09-22 15:23:57,120 INFO         Enumerating WebUsbTransport: found 1 devices                                                         [__init__.py:138]
  9. 2023-09-22 15:23:57,124 INFO         Enumerating BridgeTransport: found 1 devices                                                         [__init__.py:138]
  10. 2023-09-22 15:23:57,124 INFO         creating client instance for device: webusb:001:5:1                                                  [client.py:117]
  11. 2023-09-22 15:24:07,508 INFO         Enumerating UdpTransport: found 0 devices                                                            [__init__.py:138]
  12. 2023-09-22 15:24:07,511 INFO         Enumerating HidTransport: found 0 devices                                                            [__init__.py:138]
  13. 2023-09-22 15:24:07,514 INFO         Enumerating WebUsbTransport: found 1 devices                                                         [__init__.py:138]
  14. 2023-09-22 15:24:07,526 INFO         Enumerating BridgeTransport: found 1 devices                                                         [__init__.py:138]
  15. 2023-09-22 15:24:07,526 INFO         creating client instance for device: webusb:001:5:1                                                  [client.py:117]
  16. 2023-09-22 15:24:07,674 INFO         Successfully resumed session                                                                         [client.py:354]
  17. 2023-09-22 15:24:08,409 INFO         creating new nist256p1 GPG primary key for "muceua"                                                  [__init__.py:62]
  18. 2023-09-22 15:24:08,409 INFO         please confirm GPG signature on Trezor for "<gpg://muceua|nist256p1>"...                             [client.py:32]
  19. 2023-09-22 15:24:08,410 INFO         Enumerating UdpTransport: found 0 devices                                                            [__init__.py:138]
  20. 2023-09-22 15:24:08,413 INFO         Enumerating HidTransport: found 0 devices                                                            [__init__.py:138]
  21. 2023-09-22 15:24:08,415 INFO         Enumerating WebUsbTransport: found 1 devices                                                         [__init__.py:138]
  22. 2023-09-22 15:24:08,427 INFO         Enumerating BridgeTransport: found 1 devices                                                         [__init__.py:138]
  23. 2023-09-22 15:24:08,427 INFO         creating client instance for device: webusb:001:5:1                                                  [client.py:117]
  24. 2023-09-22 15:24:08,573 INFO         Successfully resumed session                                                                         [client.py:354]
  25. 2023-09-22 15:24:10,663 INFO         please confirm GPG signature on Trezor for "<gpg://muceua|nist256p1>"...                             [client.py:32]
  26. 2023-09-22 15:24:10,664 INFO         Enumerating UdpTransport: found 0 devices                                                            [__init__.py:138]
  27. 2023-09-22 15:24:10,667 INFO         Enumerating HidTransport: found 0 devices                                                            [__init__.py:138]
  28. 2023-09-22 15:24:10,669 INFO         Enumerating WebUsbTransport: found 1 devices                                                         [__init__.py:138]
  29. 2023-09-22 15:24:10,680 INFO         Enumerating BridgeTransport: found 1 devices                                                         [__init__.py:138]
  30. 2023-09-22 15:24:10,680 INFO         creating client instance for device: webusb:001:5:1                                                  [client.py:117]
  31. 2023-09-22 15:24:11,200 INFO         Successfully resumed session                                                                         [client.py:354]
  32. gpg: keybox '/home/muce/.gnupg/trezor/pubring.kbx' created
  33. gpg: armor header: Version: GnuPG v2
  34. gpg: pub  nistp256/199396EA747C67AD 1970-01-01  muceua
  35. gpg: /home/muce/.gnupg/trezor/trustdb.gpg: trustdb created
  36. gpg: using pgp trust model
  37. gpg: key 199396EA747C67AD: public key "muceua" imported
  38. gpg: Total number processed: 1
  39. gpg:               imported: 1
  40. gpg: inserting ownertrust of 6
  41. gpg: checking the trustdb
  42. gpg: marginals needed: 3  completes needed: 1  trust model: pgp
  43. gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
  44. gpg: keydb_search failed: End of file
  45. gpg: error reading key: End of file
  46. Traceback (most recent call last):
  47.   File "/home/muce/.local/bin/trezor-gpg", line 8, in <module>
  48.     sys.exit(gpg_tool())
  49.              ^^^^^^^^^^
  50.   File "/home/muce/.local/pipx/venvs/trezor-agent/bin/trezor_agent.py", line 6, in <lambda>
  51.     gpg_tool = lambda: gpg.main(DeviceType)
  52.                        ^^^^^^^^^^^^^^^^^^^^
  53.   File "/home/muce/.local/pipx/venvs/trezor-agent/lib/python3.11/site-packages/libagent/gpg/__init__.py", line 331, in main
  54.     return args.func(device_type=device_type, args=args)
  55.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  56.   File "/home/muce/.local/pipx/venvs/trezor-agent/lib/python3.11/site-packages/libagent/gpg/__init__.py", line 198, in run_init
  57.     check_call(keyring.gpg_command(['--homedir', homedir,
  58.   File "/home/muce/.local/pipx/venvs/trezor-agent/lib/python3.11/site-packages/libagent/gpg/__init__.py", line 104, in check_call
  59.     subprocess.check_call(args=args, stdin=stdin, env=env)
  60.   File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
  61.     raise CalledProcessError(retcode, cmd)
  62. subprocess.CalledProcessError: Command '['/usr/bin/gpg', '--homedir', '/home/muce/.gnupg/trezor', '--list-secret-keys', 'muceua']' returned non-zero exit status 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement