Skip to main content

List Key Pairs

Prerequisites

  • Install the currently supported version of clio
info

| The clio tool is bundled with the Wire software. Installing Wire Core will also install the clio tool.

REMINDER

The install process has already set up the wallet for the root user. To interact with clio, ensure you are on the root user. Run sudo su - to switch to the root user.

Steps

1. Unlock your wallet

clio wallet unlock --password "$(cat /opt/wire-network/secrets/wallet_password.txt)"

Or use the unlock script:

/opt/wire-network/unlock_wallet.sh

2. List all public keys

clio wallet keys

Example Output

[
"PUB_K1_6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5BoDq63",
"PUB_K1_7xDsNqjei5ikWPsm7qCvqKGDyDBZtRg7T2YT1tCojALuS33Tb7"
]

3. List all key pairs (public and private)

clio wallet private_keys

Example Output

[
[
"PUB_K1_6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5BoDq63",
"PVT_K1_2bfGi9rYsXQSXXTvJbDAPhHLQUojjaNLomdm3cEJ1XTzMqUt3V"
],
[
"PUB_K1_7xDsNqjei5ikWPsm7qCvqKGDyDBZtRg7T2YT1tCojALuS33Tb7",
"PVT_K1_hptMzcHHWcdiMDjMi59WS65m71H9jUW8comf52ktBG3tWxs2Q"
]
]
danger

| You should NEVER reveal your private keys in a production environment!

4. List keys by name

If you have assigned names to your keys using clio wallet set_key_name, you can list them with their names:

clio wallet keys_by_name --password <wallet_password>

Example Output

[
[
"devkey",
{
"key_name": "devkey",
"public_key": "PUB_K1_6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5BoDq63",
"private_key": "PVT_K1_2bfGi9rYsXQSXXTvJbDAPhHLQUojjaNLomdm3cEJ1XTzMqUt3V"
}
],
[
"testkey",
{
"key_name": "testkey",
"public_key": "PUB_K1_7xDsNqjei5ikWPsm7qCvqKGDyDBZtRg7T2YT1tCojALuS33Tb7",
"private_key": "PVT_K1_hptMzcHHWcdiMDjMi59WS65m71H9jUW8comf52ktBG3tWxs2Q"
}
]
]

This is useful when managing multiple keys, as it shows the key name alongside the public and private key pair.

tip

To assign a name to a key, use clio wallet set_key_name. See the set_key_name command reference for more details.