# With Kleopatra

Launch the program <mark style="color:red;">**Kleopatra**</mark>**.**

If you cannot locate this program, ensure you have [**Gpg4win** ](https://www.gpg4win.org/)installed.

In the top menu, locate ![](/files/9OufzD5zPEtj5QLwRqgp)

<figure><img src="/files/2A0ga7Ui44fUKfZ66Rpq" alt=""><figcaption></figcaption></figure>

You will then see a page which allows you to **Reload** your smartcards:

<figure><img src="/files/vwVmBJWsz42kf9MDZfm1" alt=""><figcaption></figcaption></figure>

If your Yubikey is plugged into your device and detectable, you should see the following:

<figure><img src="/files/EzcBjmgZOp21K9UoIJ2U" alt=""><figcaption></figcaption></figure>

Once your Yubikey is being detected, select the <mark style="color:red;">**Certificates**</mark> button: ![](/files/7X7tx1Z30ZKJMdrhTviQ)&#x20;

In your list of available keys, locate the one you wish to import by right-clicking on it.

<figure><img src="/files/JYPLtsUQ1dFwn2yyH1L3" alt=""><figcaption></figcaption></figure>

In the menu, select ![](/files/RZn9ebwhQtnf6dR3rXpW)

A new interface will load with additional info about your GPG key.

Select ![](/files/uKz7bxe4kVWZvXizxdqj) at the bottom left.

<figure><img src="/files/BsKoS3vWqi9TKsJwE30l" alt=""><figcaption></figcaption></figure>

On the next interface you will be able to see your <mark style="color:red;">**subkeys**</mark>.

<figure><img src="/files/nahU04FaLFS1OPvslzNF" alt=""><figcaption></figcaption></figure>

Right click on each one and you should have the menu option <mark style="color:red;">**Transfer to smartcard**</mark>.

<figure><img src="/files/GIAMifxj7qwRyXY8f7n9" alt=""><figcaption></figcaption></figure>

You will need to do this to each subkey in your list one by one.

After all keys are transferred to your Yubikey, unplug it from your device, wait a few seconds, and then plug it back in.

Once loaded, select the <mark style="color:red;">**Smartcards**</mark> button again at the top right of Kleopatra again and load your Yubikey.

Select the tab <mark style="color:red;">**OpenPGP**</mark>.

<figure><img src="/files/hFWsHASXTrxcsYH9zINe" alt=""><figcaption></figcaption></figure>

You should see each of your GPG keys shown in the list.

<figure><img src="/files/bYUouvZPL8LBA4Nx1pp2" alt=""><figcaption></figcaption></figure>

You can now use your GPG keys to do things like sign Git commits, and encrypt files / messages to people.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yubico.gitbook.io/yubikey5/gpg/import-to-yubikey/with-kleopatra.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
