# Nitrokey Pro RSA-keys

**URL:** <https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618>\
**Category:** Nitrokeys\
**Created:** [August 29, 2020, 9:49am UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618 "2020-08-29T09:49:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Django](https://support.nitrokey.com/user_avatar/support.nitrokey.com/django/32/252_2.png) [@Django](https://support.nitrokey.com/u/Django)\
**Post date:** [August 29, 2020, 9:49am UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/1 "2020-08-29T09:49:09Z")

</div>

I have a basic question: The Nitrokey Pro can store three RSA keys with a key length up to 4096 bit.

With the command key-attr from the admin menu you can set the key length accordingly. The key type and key length can be defined three times. Am I right in assuming that these three keys are the keys:

- Signature key
- Encryption key
- Authentication key

and thus covers e.g. the three RSA keys from the product data sheet?

Or is it possible to generate three independent RSA keys with their respective sub-keys? No, or yes?

---

<div class="post-metadata">

**Author:** ![nitr0z](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://support.nitrokey.com/u/nitr0z)\
**Post date:** [August 29, 2020, 3:34pm UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/2 "2020-08-29T15:34:16Z")

</div>

Hi Django,

The Nitrokey Pro can store 3 RSA keypairs. All keys use the _same identity_, but are used for _the 3 different purposes_ you mentioned: authentication, encryption and signing. A similar answer is available in the [FAQ](https://www.nitrokey.com/documentation/frequently-asked-questions-faq#how-many-keys-can-i-store) (if you haven’t seen it yet).

If by “three independent RSA keys” you mean 3 different identities, it is not possible. Maybe you will find the answer in [this ticket](https://support.nitrokey.com/t/how-many-pgp-keys-can-be-stored-on-nk-pro2-hsm2/2506) helpful.

You must be able to generate sub-keys from each keypair, and if not, I will confirm this and get back to you asap.

---

<div class="post-metadata">

**Author:** ![Django](https://support.nitrokey.com/user_avatar/support.nitrokey.com/django/32/252_2.png) [@Django](https://support.nitrokey.com/u/Django)\
**Post date:** [August 29, 2020, 3:44pm UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/3 "2020-08-29T15:44:47Z")

</div>

HI nitr0z!

Okay, so if the Nitrokey Pro , with the built-in OpenPGP Card 2.1 can store an identity with three RSA4096 keys, do I have to change the keys manually, or is the correct key automatically selected, e.g. for PGP mail encryption or the SSH key for a remote login?

If you use **key-attr** to change the key properties for the signing subkey, this will automatically apply to all three key pairs, right?

So once an RSA/2048 once an RSA/4096 and then an ECC key would not work. Correct?

---

<div class="post-metadata">

**Author:** ![nitr0z](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://support.nitrokey.com/u/nitr0z)\
**Post date:** [August 29, 2020, 4:23pm UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/4 "2020-08-29T16:23:14Z")

</div>

> [@Django](#):
>
> Okay, so if the Nitrokey Pro , with the built-in OpenPGP Card 2.1 can store an identity with three RSA4096 keys, do I have to change the keys manually, or is the correct key automatically selected, e.g. for PGP mail encryption or the SSH key for a remote login?

In that order of things, you would use the encryption key for email encryption, and authentication key for the SSH login. Unless you manually choose the encryption key for login, it should work as specified. I will need to verify this, and get back to you on this point.

> [@Django](#):
>
> If you use **key-attr** to change the key properties for the signing subkey, this will automatically apply to all three key pairs, right?

I don’t know precisely, but I will get back to you on this point too.

> [@Django](#):
>
> So once an RSA/2048 once an RSA/4096 and then an ECC key would not work. Correct?

This use case should not be possible.

According to the product specs the combinations are as follows for [secure key storage](https://shop.nitrokey.com/shop/product/nk-pro-2-nitrokey-pro-2-3):

- 3 x RSA 2048-4096 bit or 3 x ECC 256-521 bit
- 1 x AES-128 or AES-256

If you are looking for the specific use-case of multiple identities with PGP keys, the Nitrokey Start supports this feature as mentioned [here](https://www.nitrokey.com/ru/node/401).

---

<div class="post-metadata">

**Author:** ![Django](https://support.nitrokey.com/user_avatar/support.nitrokey.com/django/32/252_2.png) [@Django](https://support.nitrokey.com/u/Django)\
**Post date:** [August 30, 2020, 8:31pm UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/5 "2020-08-30T20:31:41Z")

</div>

thanx for your support =\> I solved my “problem” as described here: [Nitrokey Pro and X.509 certificate for email-encryption](https://support.nitrokey.com/t/nitrokey-pro-and-x-509-certificate-for-email-encryption/2584/7)

---

<div class="post-metadata">

**Author:** ![jan](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://support.nitrokey.com/u/jan)\
**Post date:** [August 31, 2020, 8:14am UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/6 "2020-08-31T08:14:09Z")

</div>

> [@Django](#):
>
> If you use **key-attr** to change the key properties for the signing subkey, this will automatically apply to all three key pairs, right?

This depends on the software you use. For GnuPG you need to specify/change the algorithm and key length for each of the three keys separately. See [this blog post as an example](https://www.nitrokey.com/news/2017/nitrokey-start-supports-elliptic-curves-ecc), but note it targets Nitrokey Start in particular.

> So once an RSA/2048 once an RSA/4096 and then an ECC key would not work. Correct?

You mean to use three different algorithm resp. key lengths? That would work from the device perspective. But chances are that GnuPG or whatever software you are using can’t deal with it.

---

<div class="post-metadata">

**Author:** ![Django](https://support.nitrokey.com/user_avatar/support.nitrokey.com/django/32/252_2.png) [@Django](https://support.nitrokey.com/u/Django)\
**Post date:** [August 31, 2020, 9:25am UTC](https://support.nitrokey.com/t/nitrokey-pro-rsa-keys/2618/7 "2020-08-31T09:25:53Z")

</div>

HI Jan!

> See [this blog post as an example](https://www.nitrokey.com/news/2017/nitrokey-start-supports-elliptic-curves-ecc), but note it targets Nitrokey Start in particular.

That’s a well known blogpost-article. To the topic particularly to the background information to Elliptic Curves I link also gladly always on the Infoce fon Bruce Schneier : [Nitrokey Start in der Praxis unter open SUSE leap 15.2 [Linux - Wissensdatenbank]](https://dokuwiki.nausch.org/doku.php/suse:nitrokey:start#nitrokey_start_und_secure_shell)  
and of course also at the point “Generate ED25519 key” also on the link from Nitrokey you quoted: [Nitrokey Start in der Praxis unter open SUSE leap 15.2 [Linux - Wissensdatenbank]](https://dokuwiki.nausch.org/doku.php/suse:nitrokey:start#ed25519-schluessel_generieren)

> But chances are that GnuPG or whatever software you are using can’t deal with it.

The best experience I had so far was simply using different nitrokeys for different usage scenarios. O.K. that probably explains why I have 11 Nitrokeys on my desk right now 😉

Have a nice Day!  
Django
