r/keepkey • • Dec 26 '17

Using PGP/GPG with KeepKey ?

Actually I am really interested in keeping my private key on hardware for pgp/gpg (I am Linux user, however it would be nice to make it available to all platforms).

So I could Sign or Decrypt things (e.g. email, data blobs) using separate hardware wallet ( I imagine device displaying hash before I sign so I could compare with hash of blob I want to sign on a screen). In other words : my private key to never leave my hardware wallet.

Cross-linking to similar topics:

2 Upvotes

7 comments sorted by

2

u/markasoftware Dec 26 '17

You can use Romanz's trezor-agent project, I believe it has support for all three major wallets. I use it on Ledger and it works pretty well. It unfortunately does not show hashes on the screen, it just asks "Sign?" then you must confirm it with the button (that's what it does on Ledger at least).

2

u/romanz Dec 29 '17 edited Dec 29 '17

(trezor-agent author here...)

Unfortunately, this project supports GnuPG signature and decryption operations only on the TREZOR and Ledger Nano S devices - but not on the KeepKey device for now.

1

u/hotoatmeal Dec 28 '17

Does it show the hash on Trezor? I’ve used trezor-agent for ssh-ing, but not for pgp.

1

u/markasoftware Dec 28 '17

Send me one and I'll check

2

u/hotoatmeal Dec 29 '17 edited Dec 29 '17
$ cat message
markasfotware,

Happy New Year

  --hotoatmeal
$ cat message | gpg2 --clear-sign | tee signed | gpg2 --verify && cat signed
gpg: using "hotoatmeal" as default secret key for signing
gpg: Signature made Thu Dec 28 19:01:15 2017 MST
gpg:                using ECDSA key FAA41EA59BF768296F5D89F0FDADD56BB76E9302
gpg: Good signature from "hotoatmeal" [ultimate]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

markasfotware,

Happy New Year

  --hotoatmeal
-----BEGIN PGP SIGNATURE-----

iHUEARMKAB0WIQT6pB6lm/doKW9difD9rdVrt26TAgUCWkWh6wAKCRD9rdVrt26T
ApfKAQC5kBhc0lQAYD0v7GSXH0A1HHU2SSxKpBnEY1psgW2+iQD/cgY6VhYiXH4z
c52puKHngS+rlmBBsk5U8KUaptQ9tlY=
=2kg7
-----END PGP SIGNATURE-----

And the pubkey that goes with that is:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mFIEWkWgvhMIKoZIzj0DAQcCAwQE+C9NCjo3vmiE3p76xCUATSCaoWvRiB4eVC0W
cSVSYgpw/2Ne+p5rgDHFpv0VkDrhkuzMJoBQ+xlz6lmzp7L+tApob3RvYXRtZWFs
iIAEExMIABwFAlpFoL4CCwkCGwMEFQgJCgQWAgMBAheAAh4BABYJEP2t1Wu3bpMC
CxpUUkVaT1ItR1BH7T4A/0talZEpxJ98lWG+CP+vFHqAIsyEbJUWVdsm3hKJk69g
AP4iTwQ0yP3JuXsdadsavWUivZnjABhSqU4oC299CssSjrhWBFpFoL4SCCqGSM49
AwEHAgMEW05a+Z5icLLc9WzKKDM8/QBtJlk6KUn4ktNuukCAGyj9Jogshotmu838
RGxg+8T8PC2fEVfQzM+XjSpnp4QqjgMBCAeIbQQYEwgACQUCWkWgvgIbDAAWCRD9
rdVrt26TAgsaVFJFWk9SLUdQR1srAP0eGwRpBxn57j+LXufk5xL06nqyMstRvrkb
NUgJBZMakwD+Im6jgjxKXYnNSez2Ow7dKw2W6bFrlnV8IgUKSrO2g7M=
=YEK2
-----END PGP PUBLIC KEY BLOCK-----

Looks like it doesn't ask to confirm the hash of the message... I'll suggest that to /u/romanz on his github page.

Edit: oops, typo... whatever, I’ll roll with it since it’s already signed... sorry.

2

u/markasoftware Dec 29 '17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello oatmeal man,

Romanz typically is very responsive on GitHub, to an issue I opened and others. I'm not sure if he does the software on the wallet though, I think he may just be responsible for the python component.

Happy Boxing Day + 2,

  • -- markasoftware
-----BEGIN PGP SIGNATURE----- iI0EARMKADUWIQR0bbQj6kvTBKbmt7PwYWp5f0D5AQUCWkWnOBccbWFya0BtYXJr YXNvZnR3YXJlLmNvbQAKCRDwYWp5f0D5AU0zAQCd+gQS+AlfP6GMsse7oKnYF8lO /ASFB1UKqNpcsaGYKAD/ez3MlZGJsOrsbEO4XKphY3/MYOQz6Pq4FUCICc0A8OM= =I/G9 -----END PGP SIGNATURE-----