Changes between Version 3 and Version 4 of gpgOnYubiKey4


Ignore:
Timestamp:
07/24/17 23:17:19 (7 years ago)
Author:
jorrit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • gpgOnYubiKey4

    v3 v4  
    117117uid                      Jorrit Jorritsma <jsj@xs4all.nl>
    118118}}}
     119
     120== Generating the encryption subkey ==
     121
     122The next step is to create an encryption subkey. I chose to generate the encryption key using GnuPG, rather than with the Yubikey because private keys that are generated on the Yubikey cannot be removed from the Yubikey. This has a benefit that the private key is never physically on the computer, but it also has the disadvantage that access to all encrypted data is lost if the Yubikey is ever stolen or lost or a new key is generated.
     123
     124{{{
     125gpg2 --edit-key 94D49EC738E0D9519BCDE7D9C2D3C98C511F9CF8
     126gpg (GnuPG) 2.1.15; Copyright (C) 2016 Free Software Foundation, Inc.
     127This is free software: you are free to change and redistribute it.
     128There is NO WARRANTY, to the extent permitted by law.
     129
     130Secret key is available.
     131
     132sec  rsa3072/C2D3C98C511F9CF8
     133     created: 2017-07-24  expires: 2018-07-24  usage: C   
     134     trust: ultimate      validity: ultimate
     135[ultimate] (1). Jorrit Jorritsma <jsj@xs4all.nl>
     136
     137gpg> addkey
     138Please select what kind of key you want:
     139   (3) DSA (sign only)
     140   (4) RSA (sign only)
     141   (5) Elgamal (encrypt only)
     142   (6) RSA (encrypt only)
     143Your selection? 6
     144RSA keys may be between 1024 and 4096 bits long.
     145What keysize do you want? (2048)
     146Requested keysize is 2048 bits
     147Please specify how long the key should be valid.
     148         0 = key does not expire
     149      <n>  = key expires in n days
     150      <n>w = key expires in n weeks
     151      <n>m = key expires in n months
     152      <n>y = key expires in n years
     153Key is valid for? (0) 1y
     154Key expires at di 24 jul 2018 23:15:08 CEST
     155Is this correct? (y/N) y
     156Really create? (y/N) y
     157Please enter the passphrase to unlock the OpenPGP secret key:
     158"Jorrit Jorritsma <jsj@xs4all.nl>"
     1593072-bit RSA key, ID C2D3C98C511F9CF8,
     160created 2017-07-24.
     161
     162Passphrase:
     163We need to generate a lot of random bytes. It is a good idea to perform
     164some other action (type on the keyboard, move the mouse, utilize the
     165disks) during the prime generation; this gives the random number
     166generator a better chance to gain enough entropy.
     167
     168sec  rsa3072/C2D3C98C511F9CF8
     169     created: 2017-07-24  expires: 2018-07-24  usage: C   
     170     trust: ultimate      validity: ultimate
     171ssb  rsa2048/ED815E1D36A718D2
     172     created: 2017-07-24  expires: 2018-07-24  usage: E   
     173[ultimate] (1). Jorrit Jorritsma <jsj@xs4all.nl>
     174
     175gpg> save
     176}}}