markdown gpg关键动作

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown gpg关键动作相关的知识,希望对你有一定的参考价值。

GPG: Extract private key and import on different machine
After extending the expiry date of a GPG key you might have to copy your key to another machine to use the same key there. Here is how:

Identify your private key by running gpg --list-secret-keys. You need the ID of your private key (second column)
Run this command to export your key: gpg --export-secret-keys $ID > my-private-key.asc
Copy the key to the other machine (scp is your friend)
To import the key, run gpg --import my-private-key.asc

If the key already existed on the second machine, the import will fail saying 'Key already known'. You will have to delete both the private and public key first (gpg --delete-keys and gpg --delete-secret-keys)

以上是关于markdown gpg关键动作的主要内容,如果未能解决你的问题,请参考以下文章

markdown keybase gpg导入

markdown 快速GPG智能卡指南

markdown GPG备忘单

markdown 带智能卡的GPG离线主密钥

markdown 使用GPG算法加密和解密文件 - https://www.gnupg.org/

markdown Redux动作模式