両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:gnupg [2022/09/21 11:18] – ともやん | 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> sudo dnf install gnupg2 | <font color="#FF8700"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install gnupg2 |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre>メタデータの期限切れの最終確認: 0:13:40 前の 2024年04月14日 10時47分36秒 に実施しました。 |
メタデータの期限切れの最終確認: 3:02:54 時間前の 2022年09月21日 07時23分45秒 に実施しました。 | パッケージ gnupg2-2.4.4-1.fc39.x86_64 は既にインストールされています。 |
パッケージ gnupg2-2.3.7-3.fc36.x86_64 は既にインストールされています。 | |
依存関係が解決しました。 | 依存関係が解決しました。 |
行うべきことはありません。 | 行うべきことはありません。 |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<b class=GRN>$</b> gpg2 --version | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--version</font> |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre>gpg (GnuPG) 2.4.4 |
gpg (GnuPG) 2.3.7 | libgcrypt 1.10.2-unknown |
libgcrypt 1.10.1-unknown | Copyright (C) 2024 g10 Code GmbH |
Copyright (C) 2021 Free Software Foundation, Inc. | License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> |
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> | |
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. |
暗号方式: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, | 暗号方式: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, |
TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 | TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 |
AEAD: EAX, OCB | |
ハッシュ: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 | ハッシュ: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 |
圧縮: 無圧縮, ZIP, ZLIB, BZIP2 | 圧縮: 無圧縮, ZIP, ZLIB, BZIP2 |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<b class=GRN>$</b> gpg2 --full-generate-key | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--full-generate-key</font> |
</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. |
<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) <tomoyan@tomoyan.net> |
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 --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) <tomoyan@tomoyan.net> |
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 --export -a 1B17304715C521A86114C9BC505637156AB1EBE8 | tee ~/RPM-GPG-KEY-tomoyan-36 | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--export</font> <font color="#A347BA">-a</font> 1B17304715C521A86114C9BC505637156AB1EBE8 <font color="#12488B"><b>|</b></font> <font color="#26A269">tee</font> ~/RPM-GPG-KEY-tomoyan-39 |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<b class=GRN>$</b> gpg2 --export-secret-keys --armor | tee gpg-private-keys.backup | <font color="#FF8700"><b>$</b></font> <font color="#26A269">gpg2</font> <font color="#A347BA">--export-secret-keys</font> <font color="#A347BA">--armor</font> <font color="#12488B"><b>|</b></font> <font color="#26A269">tee</font> gpg-private-keys.backup |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
パスフレーズ: <b class=HIY><- パスフレーズを入力</b> | パスフレーズ: <b class=HIY><- パスフレーズを入力</b> |
-----BEGIN PGP PRIVATE KEY BLOCK----- | -----BEGIN PGP PRIVATE KEY BLOCK----- |
| |
<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> |
| </WRAP> |
| |
| ===== 環境初期化 ===== |
| すべてを無かったことに😅\\ |
| <wrap em>※個人に関して GnuPG の鍵も設定も__すべて消えて最初からやり直し__になるのでバックアップは必須です🤔</wrap>\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <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> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
===== 参考文献 ===== | ===== 参考文献 ===== |
[[https://wiki.archlinux.jp/index.php/GnuPG|GnuPG - ArchWiki]]\\ | [[https://wiki.archlinux.jp/index.php/GnuPG|GnuPG - ArchWiki]]\\ |
| [[https://okumuralab.org/~okumura/misc/220628.html|GnuPGを使おう]]\\ |
| [[https://weblog.shuuji3.xyz/post/2020-05-05-generate-and-sign-with-ed15519-gpg-key/|ED25519のGPGキーを生成してコミットに署名する]]\\ |
| [[http://bluearth.cocolog-nifty.com/blog/2020/03/post-966b22.html|それは誰が保証するか?〔GnuPG(GPG)/電子署名〕〜ごまかせない署名〜 - 個人的健忘録 from 2013]]\\ |
| |