Todo
$ gpg --edit-key your_secret_key
gpg> expire
gpg> save
$ gpg -a --export [email protected] > public-gpg.key # PUBLIC KEY
$ gpg -a --export-secret-keys [email protected] > secret-gpg.key # Private Key
$ gpg --export-ownertrust > ownertrust-gpg.txt
$ gpg --import secret-gpg.key # Private Key
$ gpg --import-ownertrust ownertrust-gpg.txt
gpg --armor --export [email protected] > public_gpg.key
Links:
https://yanhan.github.io/posts/2017-09-27-how-to-use-gpg-to-encrypt-stuff.html