| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | 
| linux:gnupg [2024/04/14 11:12]  – [秘密鍵のバックアップ]  ともやん | linux:gnupg [2024/04/14 11:20] (現在)  – [環境初期化]  ともやん | 
|---|
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --export --armor | tee gpg-public-keys.backup | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--export</font> <font color="#A347BA">--armor</font> <font color="#12488B"><b>|</b></font> <font color="#26A269">tee</font> gpg-public-keys.backup | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| <WRAP color_result_long><html><pre> | <WRAP color_result_long><html><pre> | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --import gpg-private-keys.backup | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--import</font> gpg-private-keys.backup | 
| <b class=GRN>$</b> gpg2 --import gpg-public-keys.backup | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--import</font> gpg-public-keys.backup | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| </WRAP> | </WRAP> | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --list-secret-keys | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--list-secret-keys</font> | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| <WRAP color_result><html><pre> | <WRAP color_result><html><pre> | 
| sec   ed25519 2022-09-21 [SC] | sec   ed25519 2022-09-21 [SC] | 
| 1B17304715C521A86114C9BC505637156AB1EBE8 | 1B17304715C521A86114C9BC505637156AB1EBE8 | 
| uid           [  究極  ] TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | uid           [  究極  ] TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | 
| ssb   cv25519 2022-09-21 [E] | ssb   cv25519 2022-09-21 [E] | 
|  |  | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --delete-secret-keys 1B17304715C521A86114C9BC505637156AB1EBE8 | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--delete-secret-keys</font> 1B17304715C521A86114C9BC505637156AB1EBE8 | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| <WRAP color_result><html><pre> | <WRAP color_result><html><pre> | 
| gpg (GnuPG) 2.3.7; Copyright (C) 2021 Free Software Foundation, Inc. | gpg (GnuPG) 2.4.4; Copyright (C) 2024 g10 Code GmbH | 
| This is free software: you are free to change and redistribute it. | This is free software: you are free to change and redistribute it. | 
| There is NO WARRANTY, to the extent permitted by law. | There is NO WARRANTY, to the extent permitted by law. | 
|  |  | 
|  |  | 
| sec  ed25519/505637156AB1EBE8 2022-09-21 TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | sec  ed25519/505637156AB1EBE8 2022-09-21 TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | 
|  |  | 
| この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b> | この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b> | 
| これは秘密鍵です! 本当に削除しますか? (y/N) y <b class=HIY><- 入力</b> | これは秘密鍵です! 本当に削除しますか? (y/N) y <b class=HIY><- 入力</b> | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| </WRAP> | </WRAP> | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --list-keys | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--list-keys</font> | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| <WRAP color_result><html><pre> | <WRAP color_result><html><pre> | 
| pub   ed25519 2022-09-21 [SC] | pub   ed25519 2022-09-21 [SC] | 
| 1B17304715C521A86114C9BC505637156AB1EBE8 | 1B17304715C521A86114C9BC505637156AB1EBE8 | 
| uid           [  究極  ] TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | uid           [  究極  ] TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | 
| sub   cv25519 2022-09-21 [E] | sub   cv25519 2022-09-21 [E] | 
|  |  | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> gpg2 --delete-keys 1B17304715C521A86114C9BC505637156AB1EBE8 | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--delete-keys</font> 1B17304715C521A86114C9BC505637156AB1EBE8 | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| <WRAP color_result><html><pre> | <WRAP color_result><html><pre> | 
| gpg (GnuPG) 2.3.7; Copyright (C) 2021 Free Software Foundation, Inc. | gpg (GnuPG) 2.4.4; Copyright (C) 2024 g10 Code GmbH | 
| This is free software: you are free to change and redistribute it. | This is free software: you are free to change and redistribute it. | 
| There is NO WARRANTY, to the extent permitted by law. | There is NO WARRANTY, to the extent permitted by law. | 
|  |  | 
|  |  | 
| pub  ed25519/505637156AB1EBE8 2022-09-21 TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | pub  ed25519/505637156AB1EBE8 2022-09-21 TomoYan (TomoYan's GPG Key ED25519) <tomoyan596@gmail.com> | 
|  |  | 
| この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b> | この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b> | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| </WRAP> | </WRAP> | 
| <WRAP color_term> | <WRAP color_term> | 
| <WRAP color_command><html><pre> | <WRAP color_command><html><pre> | 
| <b class=GRN>$</b> rm -r ~/.gnupg | <font color="#FF8700"><b>$</b></font> <font color="#26A269">rm</font> <font color="#A347BA">-r</font> <u style="text-decoration-style:single">~/.gnupg</u> | 
| </pre></html></WRAP> |  | 
| <WRAP color_result><html><pre> |  | 
| </pre></html></WRAP> | </pre></html></WRAP> | 
| </WRAP> | </WRAP> |