Migration of .gnupg directory to latest gnupg 2.1.x Migrate privat key to Nitrokey This documentation was made with gnupg 2.1.18. Requirements for Debian stretch apt-get install scdaemon nitrokey-app 1. Make a backup: Save public and secret keyring The following script does a complete export of your public and private keys plus a backup of the trust database. For this you have to fill the variable KEYS= "" with the private keys.