GPGキーの引っ越し
#個人的な設定メモ
参考: https://tex2e.github.io/blog/shell/gpg-sec-key-export-import
引っ越し元で
code:_
gpg -a --export-secret-key '19329+snaka@users.noreply.github.com' > sec.pem
引越し先で
code:_
gpg --import sec.pem
確認する
code:_
$ gpg --list-keys
/home/snaka/.gnupg/pubring.kbx
------------------------------
pub rsa4096 2022-08-04 SC
AF9F50547xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
uid unknown xxxxxxx <19329+snaka@users.noreply.github.com>
sub rsa4096 2022-08-04 E
トラブルシュート
There is no assurance this key belongs to the named user を解決する
There is no assurance this key belongs to the named user を参考に インポート先で 鍵に対して信頼するための操作を行う