banner
Tenifs

Tenifs

雄关漫道真如铁,而今迈步从头越。
github
follow
zhihu
email

Importing and Exporting GPG Keys

If you have multiple device requirements, using the same GPG Key will save you a lot of unnecessary trouble.

Exporting in File Format#

Enter the following commands in the terminal:

gpg --armor --output gpg_pub.gpg --export { key ID }

gpg --armor --output gpg_sec.gpg --export-secret-key { key ID }

This way, you will get two GPG files in the current path, please keep these two files safe.

Importing from GPG Files#

If you have GPG files on hand, importing is also very simple. Enter the following commands in the terminal:

gpg --import gpg_pub.gpg
gpg --allow-secret-key-import --import gpg_sec.gpg

Note: Use your own file names and paths.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.