# TailsOS ## GPG restore smart key ```bash $ zbarcam -1 --raw > key.asc $ gpg --import key.asc $ gpg --edit-key --expert gpg> trust gpg> keytocard Really move the primary key? (y/N) y Please select where to store the key: (1) Signature key (3) Authentication key Your selection? 1 ... gpg> key 1 gpg> keytocard Please select where to store the key: (2) Encryption key Your selection? 2 ... gpg> key 1 gpg> key 2 gpg> keytocard Please select where to store the key: (3) Authentication key Your selection? 3 ... gpg> quit Save changes? (y/N) y ```