{"id":436,"date":"2017-06-20T06:26:11","date_gmt":"2017-06-19T21:26:11","guid":{"rendered":"https:\/\/pandanote.info\/?p=436"},"modified":"2020-12-31T17:38:56","modified_gmt":"2020-12-31T08:38:56","slug":"lets-encrypt%e3%81%8b%e3%82%89%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e7%95%b0%e3%81%aa%e3%82%8b%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e5%af%be%e3%81%99%e3%82%8bssltls%e8%a8%bc%e6%98%8e","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=436","title":{"rendered":"Let&#8217;s encrypt\u304b\u3089\u53d6\u5f97\u3057\u305f\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u306b\u5bfe\u3059\u308bSSL\/TLS\u8a3c\u660e\u66f8\u3092\u540c\u4e00\u306eWeb\u30b5\u30fc\u30d0\u3067\u5171\u5b58\u3055\u305b\u3066\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u306e\u65b9\u6cd5"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>Let&#8217;s encrypt\u306e\u304a\u304b\u3052\u3067\u7121\u6599\u3067\u304b\u3064\u7c21\u5358\u306bSSL\/TLS\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u500b\u4eba\u3067\u3082\u624b\u8efd\u306bSSL\/TLS\u8a3c\u660e\u66f8\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4eca\u307e\u3067\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8(\u3044\u308f\u3086\u308b\u300c\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u300d)\u3067<del datetime=\"2017-06-19T12:32:53+00:00\">\u3053\u3063\u305d\u308a<\/del>\u904b\u7528\u3057\u3066\u3044\u305f\u30c9\u30e1\u30a4\u30f3\u7528\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3001\u3059\u3067\u306b\u5225\u306e\u30c9\u30e1\u30a4\u30f3\u306eSSL\/TLS\u8a3c\u660e\u66f8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306b\u8ffd\u52a0\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>SSL\/TLS\u8a3c\u660e\u66f8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>root\u6a29\u9650\u3067\u30b7\u30a7\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089<a href=\"https:\/\/letsencrypt.jp\/usage\/\">Let&#8217;s encrypt\u306e\u30da\u30fc\u30b8<\/a>\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059(\u30c9\u30e1\u30a4\u30f3\u540d\u306f\u5b9f\u969b\u306b\u5b9f\u884c\u3057\u305f\u3082\u306e\u3068\u306f\u7570\u306a\u308a\u307e\u3059)\u3002<\/p>\n<div class=\"code\"># certbot certonly &#45;&#45;webroot -w \/var\/www\/html -d www.example.jp<\/div>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002&#8221;Congratulations!&#8221;\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u306b\u6210\u529f\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u5bc4\u4ed8\u3082\u6c42\u3081\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u304c\u3001\u6c17\u306e\u305b\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\">IMPORTANT NOTES:<br \/>\n &#8211; Congratulations! Your certificate and chain have been saved at<br \/>\n   \/etc\/letsencrypt\/live\/www.example.jp\/fullchain.pem. Your cert<br \/>\n   will expire on 2017-09-17. To obtain a new or tweaked version of<br \/>\n   this certificate in the future, simply run certbot again. To<br \/>\n   non-interactively renew *all* of your certificates, run &#8220;certbot<br \/>\n   renew&#8221;<br \/>\n &#8211; If you like Certbot, please consider supporting our work by:<\/p>\n<p>   Donating to ISRG \/ Let&#8217;s Encrypt:   https:\/\/letsencrypt.org\/donate<br \/>\n   Donating to EFF:                    https:\/\/eff.org\/donate-le<\/p><\/div>\n<p><\/p>\n<p>\u3053\u3053\u3067 ls \u30b3\u30de\u30f3\u30c9\u3067 \/etc\/letsencrypt\/live\u306e\u4e0b\u3092\u306e\u305e\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@localhost apache]# ls -l \/etc\/letsencrypt\/live\/<br \/>\n\u5408\u8a08 0<br \/>\ndrwxr-xr-x. 2 root root 93  5\u6708 17 07:29 example.org<br \/>\ndrwxr-xr-x. 2 root root 93  6\u6708 19 20:57 www.example.jp\n<\/div>\n<p><\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c2\u500b\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Apache httpd(v2.4.25)\u306b\u8a2d\u5b9a\u3059\u308b\u3002<\/h2>\n<p>\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u306b\u6210\u529f\u3057\u305f\u3089\u3001web\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002Apache httpd(v2.4.25)\u306e\u5834\u5408\u306fssl.conf\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u30022\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u306fssl.conf\u5185\u3067VirtualHost\u30bf\u30b0\u3067\u3059\u3067\u306b\u5206\u5272\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306b\u5bfe\u3057\u3066\u8a3c\u660e\u66f8\u7b49\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u8a2d\u5b9a\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059(\u8a3c\u660e\u66f8\u7b49\u306b\u76f4\u63a5\u95a2\u9023\u3057\u306a\u3044\u8a2d\u5b9a\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059)\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/pandanote-info\/dde4dc1d1d2d5507dbd45aa022371d9b.js\"><\/script><\/p>\n<h2>Apache httpd\u306e\u518d\u8d77\u52d5<\/h2>\n<p>\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u305f\u5f8c\u3001Web\u30b5\u30fc\u30d0\u3092\u5fd8\u308c\u305a\u306b\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u2026<\/p>\n<p><a href=\"https:\/\/pandanote.info\/?attachment_id=465\" rel=\"attachment wp-att-465\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/06\/letsencrypt_take1.png\" alt=\"\" width=\"237\" height=\"36\" class=\"alignnone size-full wp-image-465\" \/><\/a><\/p>\n<p>\u4eca\u307e\u3067\u8d64\u8272\u306e\u30ab\u30ae\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3068\u3053\u308d\u306b\u7dd1\u8272\u306e\u30ab\u30ae\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30cf\u30de\u308a\u3069\u3053\u308d(2017\/09\/08\u88dc\u8db3)<\/h2>\n<p>Apache httpd\u306essl.conf\u3067DocumentRoot\u306e\u8a2d\u5b9a\u306b&#8221;\/var\/www\/html&#8221;\u4ee5\u5916\u306e\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u30c9\u30e1\u30a4\u30f3\u304c\u3042\u308b\u5834\u5408\u306b\u306f\u3001\/etc\/letsencrypt\/renewal\u306e\u4e0b\u306b\u3042\u308b<\u5f53\u8a72\u30c9\u30e1\u30a4\u30f3\u540d>.conf\u306ewebroot_map\u306e\u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u306a\u3044\u3068\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306b\u5931\u6557\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"code\">&#91;webroot_map]<br \/>\n(\u30c9\u30e1\u30a4\u30f3\u540d) = (ssl.conf\u306eDocumentRoot\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u6587\u5b57\u5217)<\/div>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3057\u3066\u3044\u305f\u6642\u306b\u306fOpenSSL\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f55\u56de\u3082\u5b9f\u884c\u3057\u306a\u3044\u3068\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u6bd4\u3079\u308b\u3068Let&#8217;s encrypt\u306f\u3042\u307e\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u8a73\u3057\u304f\u306a\u304f\u3066\u3082\u4f7f\u3044\u3084\u3059\u304f\u3001\u3053\u306e\u624b\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u3057\u3066\u306f\u3088\u304f\u5de5\u592b\u3055\u308c\u3066\u3044\u308b\u3068\u611f\u3058\u307e\u3057\u305f\u3002\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3067\u306f\u306a\u304f\u3001\u6b63\u898f\u306b\u8a3c\u660e\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3057\u306d\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Let&#8217;s encrypt\u306e\u304a\u304b\u3052\u3067\u7121\u6599\u3067\u304b\u3064\u7c21\u5358\u306bSSL\/TLS\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u500b\u4eba\u3067\u3082\u624b\u8efd\u306bSSL\/TLS\u8a3c\u660e\u66f8\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4eca\u307e\u3067\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8(\u3044\u308f\u3086\u308b\u300c\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u300d)\u3067\u3053\u3063\u305d\u308a\u904b\u7528\u3057\u3066\u3044\u305f\u30c9\u30e1\u30a4\u30f3\u7528\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3001\u3059\u3067\u306b\u5225\u306e\u30c9\u30e1\u30a4\u30f3\u306eSSL\/TLS\u8a3c\u660e\u66f8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306b\u8ffd\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=436\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":465,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,3],"tags":[],"class_list":["post-436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lets-encrypt","category-website-2"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=436"}],"version-history":[{"count":32,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":7143,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions\/7143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/465"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}