{"id":477,"date":"2017-03-17T18:50:56","date_gmt":"2017-03-17T09:50:56","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=477"},"modified":"2017-09-01T16:43:28","modified_gmt":"2017-09-01T07:43:28","slug":"blog45","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog45\/","title":{"rendered":"(45) Let\u2019s Encrypt\u66f4\u65b0\u5f8c\u306b\u300c\u5b89\u5168\u306a\u63a5\u7d9a\u3067\u306f&#8230;\u300d"},"content":{"rendered":"<h1 class=my_h>\u25a0SSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0<\/h1>\n<p>Let&#8217;s encrypt\u3067\u767a\u884c\u3057\u3066\u3082\u3089\u3063\u305fSSL\u8a3c\u660e\u66f8\u306e\u671f\u9650\u306f\uff13\u304b\u6708\u9593\u3057\u304b\u306a\u3044\u3002<br \/>\n\u671f\u9650\u304c\u8fd1\u3065\u3044\u305f\u3089\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\uff08CentOS7\u306e\u5834\u5408\uff09<\/p>\n<pre>\r\n# INSTALLDIR=\/opt\/letsencrypt\r\n# systemctl stop httpd.service\r\n# cd $INSTALLDIR\r\n# .\/letsencrypt-auto renew\r\n# systemctl start httpd.service\r\n<\/pre>\n<p>\u3053\u3053\u3067<br \/>\n<span style=\"color:deeppink;font-weight:bold\">Congratulations! Your certificate and chain have been saved at&#8230;<\/span><br \/>\n\u3068\u66f4\u65b0\u6210\u529f\u306e\u3046\u308c\u3057\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u306e\u3060\u304c&#8230;<\/p>\n<h1 class=my_h>\u25a0\u554f\u984c\u767a\u751f<\/h1>\n<p>\u3057\u304b\u3057\u3001WEB\u30d6\u30e9\u30a6\u30b6\u3067\u8a72\u5f53\u30da\u30fc\u30b8\u3092\u95b2\u89a7\u3059\u308b\u3068&#8230;<br \/>\n<span style=\"color:#f00;font-weight:bold\">\u300c\u5b89\u5168\u306a\u63a5\u7d9a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u300d<br \/>\nSEC_ERROR_EXPIRED_CERTIFICATE<\/span><br \/>\n\u3068\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e Let&#8217;s encrypt community \u3067\u4f3c\u305f\u73fe\u8c61\u306e\u60c5\u5831\u3092\u3044\u308d\u3044\u308d\u3068\u53ce\u96c6\u3059\u308b\u3002<br \/>\n<a href=\"https:\/\/community.letsencrypt.org\/\" target=\"_blank\">https:\/\/community.letsencrypt.org\/<\/a><\/p>\n<h1 class=my_h>\u25a0\u539f\u56e0<\/h1>\n<p>SSL\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u6700\u65b0\u306eSSL\u8a3c\u660e\u66f8\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f&#8230;<br \/>\n\/etc\/httpd\/conf.d\/ssl.conf \u306e\u4e2d\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30dd\u30a4\u30f3\u30c8\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre>\r\n  :\r\nSSLCertificateFile \/etc\/letsencrypt\/live\/www.example.com\/cert1.pem\r\n  :\r\nSSLCertificateKeyFile \/etc\/letsencrypt\/live\/www.example.com\/privkey1.pem\r\n  :\r\nSSLCertificateChainFile \/etc\/letsencrypt\/live\/www.example.com\/chain1.pem\r\n  :\r\n<\/pre>\n<p>\u3068\u3053\u308d\u304c\u3001\u66f4\u65b0\u5f8c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre>\r\n# ls -l \/etc\/letsencrypt\/live\/www.mydomain.com\r\ntotal 4\r\nlrwxrwxrwx 1 root root  47 Mar 17 18:29 cert.pem -> ..\/..\/archive\/www.example.com\/cert2.pem\r\nlrwxrwxrwx 1 root root  48 Mar 17 18:29 chain.pem -> ..\/..\/archive\/www.example.com\/chain2.pem\r\nlrwxrwxrwx 1 root root  52 Mar 17 18:29 fullchain.pem -> ..\/..\/archive\/www.example.com\/fullchain2.pem\r\nlrwxrwxrwx 1 root root  50 Mar 17 18:29 privkey.pem -> ..\/..\/archive\/www.example.com\/privkey2.pem\r\n<\/pre>\n<p>\u914d\u7f6e\u3059\u308b\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u306e\u304b\uff1f<br \/>\n\u5404\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u4f53\u306f archive\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u3001live\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u6700\u65b0\u30d5\u30a1\u30a4\u30eb\u3078\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u3068\u8a00\u3046\u3053\u3068\u306f\u3001ssl.conf\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<pre>\r\n  :\r\nSSLCertificateFile \/etc\/letsencrypt\/live\/www.example.com\/cert.pem\r\n  :\r\nSSLCertificateKeyFile \/etc\/letsencrypt\/live\/www.example.com\/privkey.pem\r\n  :\r\nSSLCertificateChainFile \/etc\/letsencrypt\/live\/www.example.com\/chain.pem\r\n  :\r\n<\/pre>\n<p>\u4ee5\u4e0a\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>\u25a0SSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0 Let&#8217;s encrypt\u3067\u767a\u884c\u3057\u3066\u3082\u3089\u3063\u305fSSL\u8a3c\u660e\u66f8\u306e\u671f\u9650\u306f\uff13\u304b\u6708\u9593\u3057\u304b\u306a\u3044\u3002 \u671f\u9650\u304c\u8fd1\u3065\u3044\u305f\u3089\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\uff08CentOS7\u306e\u5834\u5408\uff09 # INSTALLDIR=\/\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog45\/\">\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":[65],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-ssl"],"views":5400,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/477","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=477"}],"version-history":[{"count":18,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/477\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}