- Create a new GPG key
gpg --full-generate-key
- GPG newly created key ID and let's call it
<gpg-id>
gpg --list-secret-keys
- According to this re-encrypt password store entries
pass init <gpg-id>
pass git push
- Export secret key to an ascii file
gpg --output ~/hamid.asc --armor --export-secret-keys <gpg-id>
- Start SSH daemon. We need this to securely transfer the key to our phone
sudo systemctl start sshd
-
Download the key on Termux
scp hamid@pc-ip-addr:/home/hamid/hamid.asc .
-
Go to OpenKeyChain app and import the new key from Termux storage location
-
Open PasswordStore app and reload!