# Using onlykey-gpg

**URL:** <https://onlykey.discourse.group/t/using-onlykey-gpg/192>\
**Category:** SSH, OpenPGP, GPG\
**Created:** [January 23, 2021, 12:31am UTC](https://onlykey.discourse.group/t/using-onlykey-gpg/192 "2021-01-23T00:31:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bettyvschmartz](https://yyz2.discourse-cdn.com/free1/user_avatar/onlykey.discourse.group/bettyvschmartz/32/81_2.png) [@bettyvschmartz](https://onlykey.discourse.group/u/bettyvschmartz)\
**Post date:** [January 28, 2021, 7:53pm UTC](https://onlykey.discourse.group/t/using-onlykey-gpg/192/3 "2021-01-28T19:53:28Z")

</div>

Thanks @t11, that’s a big help. Looks good, and answers the question that ultimately using the standard _gpg_ utility is possible.

Based on the fact you can’t export a derived private key from the Onlykey then using stored keys is probably the way forward for me, but hopefully the updated documentation helps others so appreciate you taking the time out there.

Is exporting derived private keys a use case you would consider supporting, or is it a security consideration? I like the convenience of using the Onlykey to derive key pairs _offline_ and using the unique RNG but can’t stomach having reliance on the device to store all private keys. Not without a separate backup that doesn’t rely on Onlykey should you not be able to get a replacement. Something like _paperkey_ ([GitHub - dmshaw/paperkey: Print an OpenPGP key on paper for archive and recovery](https://github.com/dmshaw/paperkey)) or an encrypted offline backup if useful to mitigate this risk.

_NOTE:_ under some of these new sections you’re referring to _~/.gnupg/trezor_ (which I know the agent is forked from) but so users don’t misunderstand or get confused it’s probably worth updating to _~/.gnupg/onlykey_

– BVS

---

_[View the full topic](https://onlykey.discourse.group/t/using-onlykey-gpg/192)._
