{"id":227,"date":"2021-02-15T13:11:18","date_gmt":"2021-02-15T04:11:18","guid":{"rendered":"https:\/\/pearlblue.net\/wordpress\/?p=227"},"modified":"2021-02-15T13:17:25","modified_gmt":"2021-02-15T04:17:25","slug":"lets-encrypt-2","status":"publish","type":"post","link":"https:\/\/pearlblue.net\/wordpress\/?p=227","title":{"rendered":"Let&#8217;s Encrypt"},"content":{"rendered":"\n<p class=\"has-light-gray-background-color has-background\">Let&#8217;s Encrypt \u306b\u3064\u3044\u3066\u306f\uff0c\u6628\u5e7412\u670819\u65e5\u306e\u6295\u7a3f\u3067\u65e2\u306b\u591a\u304f\u306e\u5185\u5bb9\u3092\u66f8\u3044\u305f\u3002\u3053\u3053\u3067\u306f\uff0c\u305d\u3053\u3068\u306e\u91cd\u8907\u3082\u3042\u308b\u304c\uff0c\u6b21\u56de\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306e\u30e1\u30e2\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u7f6e\u304f\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u4eca\u56de\u306e\u30b5\u30fc\u30d0\u30fc\u66f4\u65b0\u3067\u306e\u76ee\u7684\u306e\u4e00\u3064\u3068\u3057\u3066\uff0cweb\u306ehttps\u5316\u304c\u3042\u3063\u305f\u3002\u524d\u56de\u3082https\u901a\u4fe1\u306f\u30b5\u30fc\u30dd\u30fc\u30c8\u3057\u305f\u304c\uff0c\u305d\u308c\u306f\u81ea\u5df1\u8a3c\u660e\u66f8\u306b\u3088\u308b\u3082\u306e\u3067\uff0c\u79c1\u500b\u4eba\u304c\u8a3c\u660e\u66f8\u3092PC\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u305f\u3002\u4eca\u56de\u306f\u516c\u5f0f\u306a\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3057\u3066\uff0c\u57fa\u672c\u7684\u306b\u3059\u3079\u3066\u306e\u901a\u4fe1\u3092https\u5316\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">Let&#8217;s Encrypt\u306f\u30c9\u30e1\u30a4\u30f3\u8a8d\u8a3c\u66f8\u3092ACME\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5229\u7528\u3057\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u7121\u6599\u3067\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3057\u3066\u304f\u308c\u308b\u3002\u305d\u306e\u305f\u3081\u306e\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u304cACME\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3042\u308b\u3002\u3053\u306eACME\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u8272\u3005\u3042\u308b\u304c\uff0chttps:\/\/letsencrypt.org\/ja\/docs\/client-options\/\u306b\u3088\u308c\u3070\uff0cCertbot\u304c\u304a\u52e7\u3081\u3068\u3042\u308b\u3002\u524d\u56de\uff0cCentOS8\u3067\u306fcertbot-auto&nbsp;\u3092\u5229\u7528\u3057\u305f\u304c\uff0cOracle Linux \u3067\u306f\u52d5\u304b\u306a\u304b\u3063\u305f\u3002\u305d\u3053\u3067\u4eca\u56de\u306fcertbot\u3092\u5229\u7528\u3057\u305f\u3002\u4f7f\u3044\u65b9\u306f\u6b86\u3069\u540c\u3058\u3067\u3042\u308b\u3002\u5b9f\u969b\u306e\u30b3\u30de\u30f3\u30c9\u306f<\/p>\n\n\n\n<p class=\"has-white-background-color has-background\">\/usr\/bin\/certbot certonly &#8211;webroot -w \/web\u7528\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0 -d \u30e1\u30a4\u30f3\u540d &#8211;email \u30e1\u30fc\u30eb &#8211;server https:\/\/acme-v02.api.letsencrypt.org\/directory<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u7b49\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">ACME\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306fACME\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u5f93\u3063\u3066letsencrypt.org\u3068\u306e\u4ea4\u4fe1\u3092\u884c\u3044\uff0c\u30c1\u30a7\u30c3\u30af\u306b\u30d1\u30b9\u3059\u308c\u3070\uff0cletsencrypt.org\u304c\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3057\u3066\u304f\u308c\u308b\u3002ACME\u30d7\u30ed\u30c8\u30b3\u30eb\u306fRFC 8555\u306b\u3088\u3063\u3066\u898f\u5b9a\u3055\u308c\u3066\u3044\u308b\u304c\uff0c\u3053\u306e\u8aac\u660e\u306fletsencrypt.org\u3084\u4ed6\u306eweb\u306b\u3082\u3042\u308b\u3002ACME\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\uff0c\u8a3c\u660e\u66f8\u3092\u7533\u8acb\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u306bhttp\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002\u5373\u3061\uff0chttpd\u304c\u8d77\u52d5\u3057\u3066\u304a\u308a\uff0c\u7533\u8acb\u30c9\u30e1\u30a4\u30f3\u306eDocumentRoot\u306b\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002ACME\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\uff0cletsencrypt.org\u304b\u3089\u9001\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u3082\u3068\u306b\uff0c\u8a8d\u8a3c\u7528\u30c7\u30fc\u30bf\u4f5c\u6210\u3057\uff0c\u305d\u308c\u3092DocumentRoot\u4e0b\u306b<\/p>\n\n\n\n<p class=\"has-white-background-color has-background\">\/.well-known\/acme-challenge\/K6x \u30fb\u30fb\u30fb -dvHs<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u306e\u3088\u3046\u306a\u4e00\u6642\u30c7\u30fc\u30bf\u3092\u7f6e\u304f\u3002\u305d\u308c\u3092letsencrypt.org\u304c\u30a2\u30af\u30bb\u30b9\u3057\uff0c\u7533\u8acb\u30c9\u30e1\u30a4\u30f3\u306e\u6b63\u78ba\u6027\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u3053\u306e\u30c1\u30e3\u30ec\u30f3\u30b8\u306b\u30d1\u30b9\u3059\u308b\u3068\uff0c\u8a3c\u660e\u66f8\u304c\u767a\u884c\u3055\u308c\u308b\u3002\u79c1\u306e\u5834\u5408(certbot )\uff0c\u767a\u884c\u3055\u308c\u305f\u8a3c\u660e\u66f8\u306f<\/p>\n\n\n\n<ol class=\"has-white-background-color has-background wp-block-list\"><li>cert1.pem\u3000\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8<\/li><li>chain1.pem\u3000\u4e2d\u9593\u8a3c\u660e\u66f8<\/li><li>fullchain1.pem\u3000\u4e0a\u8a181,2\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080\u8a3c\u660e\u66f8<\/li><li>privkey1.pem\u3000\u8a8d\u8a3c\u7528\u79d8\u5bc6\u9375<\/li><\/ol>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u3067\u3042\u3063\u305f\u3002\u3053\u3053\u3067\uff0c\u3053\u308c\u3089pem\u30d5\u30a1\u30a4\u30eb\u306e\u5f79\u5272\u306b\u3064\u3044\u3066\u306f\uff0ccetbot \u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8<br><a href=\"https:\/\/certbot.eff.org\/docs\/using.html#where-are-my-certificates\">https:\/\/certbo<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/certbot.eff.org\/docs\/using.html#where-are-my-certificates\" target=\"_blank\">t.eff.org\/docs\/using.html#where-are-my-certificates<\/a><br>\u306b\u8a73\u3057\u3044\u8aac\u660e\u304c\u3042\u308b\u3002\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u306b\u3064\u3044\u3066\u306f\uff0cApache &gt;= 2.4.8\u306e\u5834\u5408\u306f\uff0cfullchain.pem \u3092\u4f7f\u3044\uff0cApache &lt; 2.4.8&nbsp;\u306e\u5834\u5408\u306f\uff0ccert.pem \u3068chain.pem\u3092\u4f7f\u3046\u3068\u3042\u308b\u3002\u307e\u305f\uff0cpem\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306f\uff0copenssl asn1parse\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\uff0c<\/p>\n\n\n\n<p class=\"has-white-background-color has-background\">openssl asn1parse -i -in fullchain1.pem<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u306b\u3088\u3063\u3066\uff0cfullchain1.pem\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u3053\u308c\u3089\u306epem\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3059\u308b\u3068\uff0chttps\u304c\u5b9f\u73fe\u3067\u304d\u308b\u3002\u5373\u3061\uff0c\u3053\u308c\u3089\u306e\u4f5c\u696d\u304c\u5b8c\u4e86\u5f8c\uff0c\u5bfe\u5fdc\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u306econf\u306bhttps\u306e\u5229\u7528\u3092\u8a18\u8ff0\u3057\u3066\uff0chttpd\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\uff0chttps\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3068\u306a\u308b\u3002\u4f8b\u3048\u3070\uff0c\u73fe\u5728\u306epearlblue.net\u306e\u5834\u5408\uff0cApache\/2.4.37 (Oracle Linux)\u306a\u306e\u3067\uff0c\/etc\/httpd\/conf.d\u4e0b\u306epearlbule.net.conf\u306e&lt;VirtualHost *443&gt;\u4ee5\u4e0b\u306b<br><\/p>\n\n\n\n<p class=\"has-white-background-color has-background\">SSLCertificateFile \/etc\/letsencrypt\/live\/pearlblue.net\/fullchain.pem<br>SSLCertificateKeyFile \/etc\/letsencrypt\/live\/pearlblue.net\/privkey.pem<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u7b49\u3092\u8a18\u8ff0\u3059\u308c\u3070\u3088\u3044\u3002\u4ee5\u4e0a\u306e\u624b\u7d9a\u304d\u3092\u307e\u3068\u3081\u308b\u3068\uff0c<\/p>\n\n\n\n<ol class=\"has-white-background-color has-background wp-block-list\"><li>httpd \u3092\u7acb\u3061\u4e0a\u3052\u308b\u3002<\/li><li>\u76ee\u7684\u30c9\u30e1\u30a4\u30f3\u306b\u5bfe\u3057\u3066\uff0c&lt;VirtualHost *80&gt;\u3092\uff0c\u8a18\u8ff0\u3057\uff0chttp\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3068\u3059\u308b\u3002<\/li><li>certbot \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\uff0c\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u3002<\/li><li>\u76ee\u7684\u30c9\u30e1\u30a4\u30f3\u306b\u5bfe\u3057\u3066\uff0c&lt;VirtualHost *443&gt;\u3092\uff0c\u8a18\u8ff0\u3057\uff0chttps\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3068\u3059\u308b\u3002<\/li><li>\u5fc5\u8981\u306a\u3089\uff0c.htaccess \u3092\u4f7f\u3063\u3066\uff0chttp\u304b\u3089https\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/li><\/ol>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u3068\u306a\u308b\u3002\u8907\u6570\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u3082\u540c\u69d8\u306b\u3057\u3066\u8ffd\u52a0\u53ef\u80fd\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">Let\u2019s Encrypt \u306e\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u306f\uff13\u30f6\u6708\u3068\u77ed\u3044\u306e\u3067\u66f4\u65b0\u304c\u5fc5\u8981\u3067\u3042\u308b\u304c\uff0c<\/p>\n\n\n\n<p class=\"has-white-background-color has-background\">certbot renew<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background\">\u3067\u5168\u3066\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u306e\u8a3c\u660e\u66f8\u3092\uff08\u671f\u9650\u304c30\u65e5\u672a\u6e80\u306e\u5834\u5408\uff09\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u3002\u9069\u5b9c\u624b\u52d5\u3067\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3088\u3044\u304c\uff0ccron\u3092\u4f7f\u3063\u3066\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s Encrypt \u306b\u3064\u3044\u3066\u306f\uff0c\u6628\u5e7412\u670819\u65e5\u306e\u6295\u7a3f\u3067\u65e2\u306b\u591a\u304f\u306e\u5185\u5bb9\u3092\u66f8\u3044\u305f\u3002\u3053\u3053\u3067\u306f\uff0c\u305d\u3053\u3068\u306e\u91cd<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-oracle-linux"],"_links":{"self":[{"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":18,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pearlblue.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}