# GPG stored key initialisation

**URL:** <https://onlykey.discourse.group/t/gpg-stored-key-initialisation/1359>\
**Category:** SSH, OpenPGP, GPG\
**Created:** [September 30, 2024, 1:51pm UTC](https://onlykey.discourse.group/t/gpg-stored-key-initialisation/1359 "2024-09-30T13:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henri\_GEIST](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@Henri\_GEIST](https://onlykey.discourse.group/u/Henri_GEIST)\
**Post date:** [September 30, 2024, 1:51pm UTC](https://onlykey.discourse.group/t/gpg-stored-key-initialisation/1359/1 "2024-09-30T13:51:01Z")

</div>

Hello !

Many thanks for this wonderfull OnlyKey product.

Just a point about the instructions on how to initialize GPG stored keys in the page:

> **[OnlyKey SSH/GPG agent | Docs](https://docs.onlykey.io/onlykey-agent.html)**
>
> Using OnlyKey as hardware SSH and GnuPG agent.

as the code example contain [email protected] replacement in:

```auto
$ onlykey-gpg init "Bob Smith <[email protected]>" -sk ECC5 -dk ECC4 -i [email protected]

```

And at least lower in the page in:

```auto
$ onlykey-gpg init "Bob Smith <[email protected]>" -sk ECC2 -dk ECC1 -i [email protected] -e nist256p1

```

And as there is nothing else written about it, I had supposed I should repeat the email address after the ‘-i’ and of course it didn’t work.  
And as the result of

```auto
$ onlykey-gpg -h

```

was

```auto
usage: onlykey-gpg [-h] [--version] {init} ...

options:
  -h, --help show this help message and exit
  --version print the version info

Action:
  {init}
    init initialize hardware-based GnuPG identity

See https://github.com/romanz/trezor-agent/blob/master/doc/README-GPG.md for usage examples.

```

This did not help me more.

I had to dig in the python code to discover that what was expected was an asc file containing the public key associated.  
It takes me hours to understand de problem and discover this.

May be this can be reworded more clearly in the documentation for the next ones.

Best regards.
