# Keyfile Generation

Step 1. Launch the offline application\
Step 2. Click **Generate** the keyfile\
Step 3. In the **Generated public key** box, copy the public key *(this specific key defines who can create pre-issuance files. A user will need to insert it in the corresponding field when* [*creating the token*](/product-guide/user-guide/user-issued-tokens/token-creation.md) *to define who can create the pre-issuance files.)*\
Step 4. In the **Password** field, type the password you will further use for file decryption *(**Important:** you will no longer be able to change or restore the password)*\
Step 5. Click **Save file**\
Step 6. Name the keyfile on your computer and save it<br>


---

# 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://tokend.gitbook.io/product-guide/user-guide/offline-application/keyfile-generation.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.
