# Shared Key between GnuPG and WebCrypt

**URL:** <https://onlykey.discourse.group/t/shared-key-between-gnupg-and-webcrypt/228>\
**Category:** SSH, OpenPGP, GPG\
**Created:** [February 12, 2021, 10:32pm UTC](https://onlykey.discourse.group/t/shared-key-between-gnupg-and-webcrypt/228 "2021-02-12T22:32:59Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![George](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@George](https://onlykey.discourse.group/u/George)\
**Post date:** [February 16, 2021, 4:10pm UTC](https://onlykey.discourse.group/t/shared-key-between-gnupg-and-webcrypt/228/8 "2021-02-16T16:10:15Z")

</div>

Yes, that works!

With the other half of my problem, I’ve tried loading stored keys both on Fedora and Debian - same error. The problem occurs when trying to read the private key, using the helper script in .gnupg/onlykey.  
It seems to be attempting to access the private key before connecting to the OnlyKey:

- Using generated keys works, as mentioned.
- When using generated keys, if the OK is not connected, it errors out, as expected.
- Try running the command to load a stored key, and it makes no difference whether the key is even connected - the code to connect to the OK interface is not run, before trying to list the private keys.

---

_[View the full topic](https://onlykey.discourse.group/t/shared-key-between-gnupg-and-webcrypt/228)._
