{"id":2682,"date":"2021-01-25T12:11:47","date_gmt":"2021-01-25T03:11:47","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=2682"},"modified":"2021-01-25T23:28:58","modified_gmt":"2021-01-25T14:28:58","slug":"blog122","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog122\/","title":{"rendered":"(122) PGP\u516c\u958b\u9375\u3092\u76f8\u624b\u306b\u6e21\u3059\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u53d6\u5f15\u76f8\u624b\u306e\u65b9\u304b\u3089<br \/>\n<span class=\"my_fc_deeppinkBBig\">\u8cc7\u6599\u3092\u9001\u308a\u305f\u3044\u306e\u3067PGP\u516c\u958b\u9375\u3092\u3061\u3087\u3046\u3060\u3044\u3002<\/span><br \/>\n\u3068\u8a00\u308f\u308c\u305f\u3002<\/p>\n<p>\u3067&#8230;<br \/>\n\u65e9\u901f\u4f5c\u3063\u3066\u307f\u305f\u3002<\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<p>PGP\u516c\u958b\u9375\u306e\u751f\u6210\u3092 Ubuntu\u4e0a\u306e <span class=\"my_fc_deeppinkBBig\">GnuPG<\/span> \u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><a href=\"https:\/\/gnupg.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/gnupg.org\/<br \/>\n<img decoding=\"async\" class=\"my_add_bs1\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2021\/01\/i001.png\" alt=\"\" \/><\/a><\/p>\n<p>\u3053\u306e Ubuntu\u30de\u30b7\u30f3\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u4f5c\u3063\u305f\u3082\u306e\u3060\u3002<br \/>\n<a href=\"https:\/\/www.dogrow.net\/linux\/blog103\/\" target=\"_blank\" rel=\"noopener\">(103) Intel NUC\u3092 Subversion\u30b5\u30fc\u30d0\u30fc\u306b\u3059\u308b\u3002 \u3010\u63a1\u7528\u6c7a\u5b9a\u3011<\/a><\/p>\n<h3 class=\"my_h\">(1) gpg\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"my_pre\">\r\nuser@intel-nuc:~$ <span class=\"my_fc_deeppinkB\">sudo apt install gpg<\/span>\r\n[sudo] password for user:\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\ngpg is already the newest version (2.2.4-1ubuntu1.3).\r\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\r\nuser@intel-nuc:~$\r\n<\/pre>\n<p>\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<h3 class=\"my_h\">(2) \u9375\u3092\u751f\u6210<\/h3>\n<p>\u9375\u306e\u6709\u52b9\u671f\u9650\u306a\u3069\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u306e\u3067 <span class=\"my_fc_deeppinkB\">&#8211;full-gen-key<\/span> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nuser@intel-nuc:~$ <span class=\"my_fc_deeppinkB\">gpg --full-gen-key<\/span>\r\ngpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n<\/pre>\n<p>\u9375\u7a2e\u5225\u306f <span class=\"my_fc_deeppinkB\">RSA and RSA<\/span> \u3092\u6307\u5b9a\u3057\u305f\u3002<\/p>\n<pre class=\"my_pre\">\r\nPlease select what kind of key you want:\r\n   (1) RSA and RSA (default)\r\n   (2) DSA and Elgamal\r\n   (3) DSA (sign only)\r\n   (4) RSA (sign only)\r\nYour selection? <span class=\"my_fc_deeppinkB\">1<\/span>\r\n<\/pre>\n<p>\u9375\u9577\u306f <span class=\"my_fc_deeppinkB\">2048[bits]<\/span> \u3092\u6307\u5b9a\u3057\u305f\u3002<\/p>\n<pre class=\"my_pre\">\r\nRSA keys may be between 1024 and 4096 bits long.\r\nWhat keysize do you want? (3072) <span class=\"my_fc_deeppinkB\">2048<\/span>\r\nRequested keysize is 2048 bits\r\n<\/pre>\n<p>\u6709\u52b9\u671f\u9593\u306f\u3001\u4eca\u304b\u3089 <span class=\"my_fc_deeppinkB\">20\u65e5\u9593<\/span> \u3092\u6307\u5b9a\u3057\u305f\u3002<\/p>\n<pre class=\"my_pre\">\r\nPlease specify how long the key should be valid.\r\n         0 = key does not expire\r\n      <n>  = key expires in n days\r\n      <n>w = key expires in n weeks\r\n      <n>m = key expires in n months\r\n      <n>y = key expires in n years\r\nKey is valid for? (0) <span class=\"my_fc_deeppinkB\">20<\/span>\r\nKey expires at Sun 14 Feb 2021 11:57:10 AM JST\r\n<\/pre>\n<p>\u3053\u308c\u3067\u751f\u6210\u3092\u958b\u59cb\uff01<\/p>\n<pre class=\"my_pre\">\r\nIs this correct? (y\/N) <span class=\"my_fc_deeppinkB\">y<\/span>\r\n<\/pre>\n<p>\u6697\u53f7\u9375\u306e\u751f\u6210\u304c\u958b\u59cb\u3055\u308c\u305f\u304c\u3001\u4e71\u6570\u30b7\u30fc\u30c9\u3092\u4e0e\u3048\u3088\u3068\u306e\u3053\u3068\u3002<\/p>\n<pre class=\"my_pre\">\r\nWe need to generate a lot of random bytes. It is a good idea to perform\r\nsome other action (type on the keyboard, move the mouse, utilize the\r\ndisks) during the prime generation; this gives the random number\r\ngenerator a better chance to gain enough entropy.\r\n<\/pre>\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u4e0a\u3067\u9069\u5f53\u306b\u30ad\u30fc\u3092\u62bc\u3057\u7d9a\u3051\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\n<span class=\"my_fc_deeppink\">ssfe$536'3r65eroioierogerg;l,;vsopkpefokpokkpPpokrgr_\\\/sf.@wepl3\\l,wef;l,p3rofpeosf,mkgreg\r\npokpowkefpok3kr0kfpokpowekfpokp3ro2kpowfekpwokefpokpok)#\")%pfokwpefok\r\npokpokpokpokp8998989)()#\"(RJkfwefoiej\r\noioivweoijoi3rjoijo)(UR)#\"joifejowef\r\nvdoiwoifjowi3jfijoi....+++..++++\r\n;oirgjior\r\n('RH#(7hiufwjoiwjefo\r\nod,bpodrk,p\r\n)(Rjoifweoifjweofiw\r\nrgp,oerk,gp\r\nPFOWEKPEWOKFpo32rkpokrp84984\r\nPOFKQPfw[[@;[@;wef<\/span>\r\n<\/pre>\n<p>\u4e0a\u3067\u3054\u7d39\u4ecb\u3057\u305f Celeron\u642d\u8f09\u306e Intel NUC\u74b0\u5883\u3067\u306f\u306a\u304b\u306a\u304b\u30ad\u30fc\u306e\u751f\u6210\u304c\u5b8c\u4e86\u305b\u305a&#8230;<\/p>\n<h3 class=\"my_h\">(3) \u516c\u958b\u9375\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b<\/h3>\n<p><span class=\"my_fc_crimsonBBig\">\u5f8c\u65e5\u8ffd\u8a18<\/span><\/p>\n<h1 class=\"my_h\">3. \u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u308b<\/h1>\n<h3 class=\"my_h\">(1) \u53d7\u4fe1\u3057\u305f\u8cc7\u6599\u3092\u8907\u5408\u5316\u3059\u308b\u3002<\/h3>\n<p><span class=\"my_fc_crimsonBBig\">\u5f8c\u65e5\u8ffd\u8a18<\/span><\/p>\n<h3 class=\"my_h\">(2) \u9001\u4fe1\u3059\u308b\u8cc7\u6599\u3092\u6697\u53f7\u5316\u3059\u308b\u3002<\/h3>\n<p><span class=\"my_fc_crimsonBBig\">\u5f8c\u65e5\u8ffd\u8a18<\/span><\/p>\n<p>.<\/p>\n<h1 class=\"my_h\">4. \u6240\u611f<\/h1>\n<p><span class=\"my_fc_crimsonBBig\">\u5f8c\u65e5\u8ffd\u8a18<\/span><br \/>\n\u30fb\u3061\u306a\u307f\u306b <span class=\"my_fc_deeppinkB\">Thunderbird<\/span> \u306a\u3089\u3082\u3063\u3068\u7c21\u5358\u306b\u3067\u304d\u308b\u3002\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n\u30001) \u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u62bc\u3059\u3002<br \/>\n\u30002) [\u30c4\u30fc\u30eb]\uff0d[OpenPGP \u9375\u30de\u30cd\u30fc\u30b8\u30e3\u30fc] \u30e1\u30cb\u30e5\u30fc\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n\u30003) [\u751f\u6210]\uff0d[\u65b0\u3057\u3044\u9375\u30da\u30a2] \u30e1\u30cb\u30e5\u30fc\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n\u3000\u5f8c\u306f\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3048\u3070\u3088\u3044\u3002<\/p>\n<h1 class=\"my_h\">5. \u8b1d\u8f9e<\/h1>\n<p>\u6709\u7528\u306a\u60c5\u5831\u3092\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002m(_ _)m<br \/>\nhttps:\/\/qiita.com\/umi\/items\/2074aac509a6e78c4ef4<br \/>\nhttps:\/\/qiita.com\/kanatatsu64\/items\/c6f612b34ec69809fbb6<br \/>\nhttps:\/\/zenn.dev\/spiegel\/articles\/20200920-gnupg-cheat-sheet<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 \u53d6\u5f15\u76f8\u624b\u306e\u65b9\u304b\u3089 \u8cc7\u6599\u3092\u9001\u308a\u305f\u3044\u306e\u3067PGP\u516c\u958b\u9375\u3092\u3061\u3087\u3046\u3060\u3044\u3002 \u3068\u8a00\u308f\u308c\u305f\u3002 \u3067&#8230; \u65e9\u901f\u4f5c\u3063\u3066\u307f\u305f\u3002 2. \u3084\u3063\u3066\u307f\u308b PGP\u516c\u958b\u9375\u306e\u751f\u6210\u3092 Ubuntu\u4e0a\u306e GnuPG \u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u3002\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog122\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123,124],"tags":[],"class_list":["post-2682","post","type-post","status-publish","format-standard","hentry","category-gpg","category-124"],"views":1463,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=2682"}],"version-history":[{"count":18,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2682\/revisions"}],"predecessor-version":[{"id":2701,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2682\/revisions\/2701"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=2682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=2682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=2682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}