-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
581d699
commit edbc051
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Key Management | ||
============== | ||
|
||
Key Slots | ||
--------- | ||
|
||
The PIV application can hold certificates for different purposes. | ||
For each purpose the private key and its corresponding certificate are stored in a key slot. | ||
|
||
+-------+------------------------+-------------------------------------------------------+ | ||
| Slot | Application | Description | | ||
+=======+========================+=======================================================+ | ||
| 82-95 | Retired Key Management | The private keys and certificates in these slots were | | ||
| | | used for key management applications and are still | | ||
| | | there to provide backward compatibility. | | ||
+-------+------------------------+-------------------------------------------------------+ | ||
| 9a | Authentication | The private key and certificate in this slot | | ||
| | | are used to authenticate the cardholder. | | ||
+-------+------------------------+-------------------------------------------------------+ | ||
| 9c | Signature | The private key and certificate in this slot | | ||
| | | are used to sign emails and files. | | ||
+-------+------------------------+-------------------------------------------------------+ | ||
| 9d | Key Management | The private key and certificate in this slot | | ||
| | | are used to encrypt emails and files. | | ||
+-------+------------------------+-------------------------------------------------------+ | ||
| 9e | Card Authentication | The private key and certificate in this slot | | ||
| | | are used for physical operations, such as building | | ||
| | | access or time recording. Support from the respective | | ||
| | | system is a prerequisite. | | ||
+-------+------------------------+-------------------------------------------------------+ | ||
|
||
Algorithms | ||
---------- | ||
|
||
The PIV application uses asymmetric and symmetric algorithms. | ||
The asymmetric algorithms are used for the user private keys and the symmetric algorithms for the management key. | ||
|
||
Supported asymmetric key algorithms: | ||
|
||
* RSA 2048 | ||
* nistp256 | ||
|
||
Supported symmetric key algorithms: | ||
|
||
* AES 256 | ||
* 3DES (TDES) | ||
|
||
.. warning:: | ||
It is not recommended to use the 3DES (TDES) algorithm. | ||
|
||
Generate Key | ||
------------ | ||
|
||
The PIV application can generate a new private key on the Nitrokey. | ||
|
||
The command below will create private key in key slot ``9a`` for the user with the subject name ``John Doe`` and subject alternative name ``[email protected]``. | ||
|
||
.. code-block:: | ||
nitropy nk3 piv generate-key --key-slot 9a --subject-name "John Doe" --subject-alt-name-upn "[email protected]" |