---
title: "Initialize Key Guardian"
description: "Create the first account, choose key custody and generate the Guardian root key."
source: "Key Guardian"
---
A new Key Guardian has no accounts and no root key, and releases nothing until an administrator
initializes it. It takes about two minutes.

## 1. Create the first account

Open the console and select **Create one** under the sign-in form. Usernames are 4 to 20
characters. After you register, sign in.

![The Create an account form](../media/auth-register.png)

The first account is the administrator. Until Google sign-in is configured, anyone who can reach
the console can register. New accounts see only the instances they create or that are shared with
them, but if you don't want self-registration, configure Google sign-in or keep the console off
public networks.

## 2. Choose key custody

After you sign in, Key Guardian opens **Initialize Key Guardian**. Everything it stores is
encrypted with one data key, and this step chooses what protects that key.

![Setup step 1: Key custody](../media/setup-custody.png)

**Software key** is already set up from `ENCRYPTION_KEY`. It's enough to start with, so select
**Continue**. You can add a YubiHSM 2 or Azure Key Vault now or later. See
[Key custody](../administration/key-custody.mdx).

## 3. Generate the root key

The Guardian root key signs attestation tokens and certifies TPMs and Macs.

![Setup step 2: Root key](../media/setup-root-key.png)

Enter a display name and certificate CN, and pick the signing curve. Choose **secp256r1 / NIST
P-256** unless you have a reason not to: most JOSE libraries, TLS stacks and Apple devices support
it. Pick secp256k1 only for verifiers from the blockchain world. You can't change the curve later
without a [factory reset](../administration/factory-reset.mdx).

Select **Generate root key**.

## 4. Record the fingerprint

![The Guardian is initialized, showing the root key fingerprint](../media/setup-done.png)

Write down the root key's SHA-256 fingerprint, then select **Go to dashboard**. Verifiers fetch the
root's public key from `https://<your Key Guardian>/setup/jwks.json`.

## Next

[Create an instance and add a secret](../secrets/instances.mdx).