OpenPGP Setup Guide for USB Keys and Cards
This guide will help you set up and use your device with the OpenPGP applet for secure encryption, signing, and authentication.
Step 1: Install Necessary Software
- GnuPG: GnuPG (GPG) is required to interact with the OpenPGP applet on your device.
- Smart Card Daemon (Optional): Ensure that
scdaemon
is running if needed (Linux only).
Step 2: Insert and Verify the Device
- Insert your USB key, NFC, or contact interface card into the appropriate port or reader.
- Open a terminal and run:
gpg --card-status
.
If the device is detected, information about the OpenPGP card will display.
Step 3: Setting Up OpenPGP Keys
- Generate or Import Keys:
- If you already have an OpenPGP key pair, import it to your device by following instructions in
gpg --edit-key
. - To generate new keys on the device, run
gpg --card-edit
, then enteradmin
to enable admin commands. Usegenerate
to create new keys directly on the device.
- If you already have an OpenPGP key pair, import it to your device by following instructions in
- Backup Your Keys: If you generate new keys, ensure you back them up securely.
Step 4: Using the OpenPGP Device
Once your keys are set up, you can start using your device:
- Encrypt a Message:
gpg --encrypt --recipient recipient_key_id file.txt
- Sign a Document:
gpg --sign file.txt
- Decrypt a Message: Insert your device and run:
gpg --decrypt file.txt.gpg
- Authenticate with Your Device: For SSH authentication, add
enable-ssh-support
to~/.gnupg/gpg-agent.conf
and restart withgpgconf --kill gpg-agent
.
Step 5: Default PINs and Security
To keep your device secure, it is important to understand the default PINs and set your own for added protection:
- Default User PIN: 123456
- Default Admin PIN: 12345678
Important: These OpenPGP PINs are different from FIDO2 PINs. They are specific to the OpenPGP applet and are required to access its encryption, signing, and authentication features.
To change your PIN, use gpg --card-edit
and follow the prompts under the admin
command.
Additional Tips
- Remove or disconnect your device when not in use to prevent unauthorized access.
- If you forget your PIN, consult the documentation or contact support, as resetting it may require reinitializing the device.
FAQ: OpenPGP
Q1: What type of applet is used for key storage?
A1: We use a standard Java applet (OpenPGP) that enables secure storage of one key of each type.
Q2: How many OpenPGP keys are supported by our FIDO key?
A2: Our FIDO key supports three types of OpenPGP keys: one for authentication, one for encryption, and one for signature.
Q3: What cryptographic algorithms are supported?
A3: The supported algorithms include:
- RSA: RSA2048
- ECC (Elliptic Curve Cryptography): secp256r1, secp256k1, secp384r1, secp521r1
Subscribe to our mailing list
Want to keep up-to-date with the latest Token2 news, projects and events? Join our mailing list!