> For the complete documentation index, see [llms.txt](https://yubico.gitbook.io/yubikey5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yubico.gitbook.io/yubikey5/gpg/generate-keys/with-yubikey.md).

# With Yubikey

<figure><img src="https://4134239767-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwDiMyl2FV0YbzWbcTioq%2Fuploads%2F0ESKGJfw2bzEZOTEQJTU%2Fbanner_gpg_generating_yubikey.png?alt=media&amp;token=6d7ead52-af35-4948-8f0c-ef5e01b45aca" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Before getting started, make sure you have configured your Yubikey with PINs that you have assigned and not the default PINs that come with the Yubikey.

\
[**Read about configuring your GPG PINs here.**](/yubikey5/gpg/getting-started/2.-pins.md)
{% endhint %}

{% hint style="info" %}
This guide requires one device of any in the following categories:

* [x] [YubiKey 5 Series](https://www.yubico.com/store/#yubikey-5-series)
* [x] [YubiKey 5 FIPs Series](https://www.yubico.com/store/#yubikey-5-fips-series)
  {% endhint %}

## <mark style="color:red;">❊ About Generating with Yubikey</mark>

Unlike the PIV interface, there is no way to generate GPG keys directly on the Yubikey. You must create them using methods such as the [**GPG command-line**](/yubikey5/gpg/generate-keys/with-commandline.md) or GUI software like [**Kleopatra** ](/yubikey5/gpg/generate-keys/with-kleopatra.md)and then transfer them to your Yubikey.

Please select a method:

{% content-ref url="/pages/YsVoLhZ30MF8iHuxtSyW" %}
[With Commandline](/yubikey5/gpg/import-to-yubikey/with-commandline.md)
{% endcontent-ref %}

{% content-ref url="/pages/HBlghcDqmSylMuGpG2q5" %}
[With Kleopatra](/yubikey5/gpg/import-to-yubikey/with-kleopatra.md)
{% endcontent-ref %}
