linux:gnupg

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:gnupg [2022/09/21 16:40] – [参考文献] ともやんlinux:gnupg [2024/04/14 11:20] (現在) – [環境初期化] ともやん
行 10: 行 10:
 <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 前の 20240414日 104736秒 に実施しました。 
-メタデータの期限切れの最終確認: 3:02:54 時間前の 20220921日 072345秒 に実施しました。 +パッケージ gnupg2-2.4.4-1.fc39.x86_64 は既にインストールされています。
-パッケージ gnupg2-2.3.7-3.fc36.x86_64 は既にインストールされています。+
 依存関係が解決しました。 依存関係が解決しました。
 行うべきことはありません。 行うべきことはありません。
行 24: 行 23:
 <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 &lt;https://gnu.org/licenses/gpl.html&gt;
-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.
行 39: 行 37:
 暗号方式: 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
行 49: 行 46:
 <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.
行 113: 行 110:
 <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>
行 123: 行 120:
 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&apos;s GPG Key ED25519) &lt;tomoyan@tomoyan.net&gt;
 sub   cv25519 2022-09-21 [E] sub   cv25519 2022-09-21 [E]
  
行 132: 行 129:
 <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>
行 139: 行 136:
 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&apos;s GPG Key ED25519) &lt;tomoyan@tomoyan.net&gt;
 ssb   cv25519 2022-09-21 [E] ssb   cv25519 2022-09-21 [E]
  
行 149: 行 146:
 <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>
行 173: 行 170:
 <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>&lt;- パスフレーズを入力</b>
 -----BEGIN PGP PRIVATE KEY BLOCK----- -----BEGIN PGP PRIVATE KEY BLOCK-----
  
行 201: 行 198:
 <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>
行 441: 行 438:
 <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>
行 460: 行 457:
 <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>
行 467: 行 464:
 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) &lt;tomoyan596@gmail.com&gt;
 ssb   cv25519 2022-09-21 [E] ssb   cv25519 2022-09-21 [E]
  
行 476: 行 473:
 <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) &lt;tomoyan596@gmail.com&gt;
  
-この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b> +この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY>&lt;- 入力</b> 
-これは秘密鍵です! 本当に削除しますか? (y/N) y <b class=HIY><- 入力</b>+これは秘密鍵です! 本当に削除しますか? (y/N) y <b class=HIY>&lt;- 入力</b>
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 494: 行 491:
 <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>
行 501: 行 498:
 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) &lt;tomoyan596@gmail.com&gt;
 sub   cv25519 2022-09-21 [E] sub   cv25519 2022-09-21 [E]
  
行 510: 行 507:
 <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) &lt;tomoyan596@gmail.com&gt;
  
-この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY><- 入力</b>+この鍵を鍵リングから削除しますか? (y/N) y <b class=HIY>&lt;- 入力</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>
  • linux/gnupg.1663746032.txt.gz
  • 最終更新: 2022/09/21 16:40
  • by ともやん