{"id":7153,"date":"2020-02-01T18:09:24","date_gmt":"2020-02-01T09:09:24","guid":{"rendered":"http:\/\/www.k-in.co.jp\/niwakan\/?p=7153"},"modified":"2021-11-18T09:17:09","modified_gmt":"2021-11-18T00:17:09","slug":"apache2%e3%81%aehttps%e9%80%9a%e4%bf%a1%e7%92%b0%e5%a2%83%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2020\/02\/7153\/","title":{"rendered":"Apache2\u306eHTTPS\u901a\u4fe1\u74b0\u5883\u4f5c\u6210"},"content":{"rendered":"<p>Apache2\u3067\u306eSSL\u7d4c\u7531\u306e\u63a5\u7d9a\u74b0\u5883\u306e\u8a2d\u5b9a\u306f\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u5225\u306b\u5206\u3051\u307e\u3059\u3002<br \/>\n\u4e3b\u306b\/opt\/local\/etc\/apache2\/extra\/httpd-ssl.conf\u306e\u4fee\u6b63\u5185\u5bb9\u3068\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>\u5b9f\u50cd\u7528\u306eserver.key\u3068\u304b\u306e\u8a3c\u660e\u66f8\u95a2\u9023\u306f\u3001\u4f55\u51e6\u306b\u4ed5\u821e\u3063\u305f\u304b\u304b\u3089\u2026\u2026\u6b21\u306b\u305d\u308c\u304c\u6b63\u3057\u3044\u304b\u306e\u78ba\u8a8d\u3082\u3057\u307e\u3057\u305f\u3002<br \/>\n\u63a2\u3059\u306e\u5927\u5909\u2026\u2026\uff08\u6d99\uff09<\/p>\n<h4>\u5148\u305a\u306f\u73fe\u6642\u70b9\u3067\u4fee\u6b63\u3057\u305f\u5185\u5bb9<\/h4>\n<pre class=\"lang:default decode:true \" title=\"https-ssl.conf\" >\r\n26c26\r\n< #SSLRandomSeed startup file:\/dev\/random  512\r\n---\r\n> SSLRandomSeed startup file:\/dev\/random  512\r\n125,126c125,126\r\n< ServerName www.example.com:443\r\n< ServerAdmin you@example.com\r\n---\r\n> ServerName www2.lo.k-in.co.jp:443\r\n> ServerAdmin dupport@k-in.co.jp\r\n144c144\r\n< SSLCertificateFile \"\/opt\/local\/etc\/apache2\/server.crt\"\r\n---\r\n> SSLCertificateFile \"\/opt\/local\/etc\/apache2\/conf\/server.crt\"\r\n154c154\r\n< SSLCertificateKeyFile \"\/opt\/local\/etc\/apache2\/server.key\"\r\n---\r\n> SSLCertificateKeyFile \"\/opt\/local\/etc\/apache2\/conf\/server.key\"\r\n\r\n<\/pre>\n<pre class=\"lang:default decode:true \" title=\"error.log\u306e\u51fa\u529b\u5185\u5bb9\" >\r\n[Sat Feb 01 17:44:28.904130 2020] [ssl:emerg] [pid 37616] AH02562: Failed to configure certificate w\r\nww2.lo.k-in.co.jp:443:0 (with chain), check \/opt\/local\/etc\/apache2\/conf\/server.csr\r\n[Sat Feb 01 17:44:28.904361 2020] [ssl:emerg] [pid 37616] SSL Library Error: error:0909006C:PEM rout\r\nines:get_name:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?\r\n[Sat Feb 01 17:44:28.904611 2020] [ssl:emerg] [pid 37616] SSL Library Error: error:140DC009:SSL routines:use_certificate_chain_file:PEM lib\r\nAH00016: Configuration Failed\r\n[Sat Feb 01 17:47:38.836148 2020] [ssl:emerg] [pid 37658] AH02562: Failed to configure certificate www2.lo.k-in.co.jp:443:0 (with chain), check \/opt\/local\/etc\/apache2\/conf\/server.crt\r\n[Sat Feb 01 17:47:38.836586 2020] [ssl:emerg] [pid 37658] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?\r\n[Sat Feb 01 17:47:38.836610 2020] [ssl:emerg] [pid 37658] SSL Library Error: error:140DC009:SSL routines:use_certificate_chain_file:PEM lib\r\nAH00016: Configuration Failed\r\n<\/pre>\n<p>error\u3067\u3057\u3070\u3089\u304f\u60a9\u3093\u3067\u3044\u305f\u304c\u3001\u7d50\u679copenssl\u3067\u4f5c\u308b\u4e2d\u9593\u30d5\u30a1\u30a4\u30eb\u3092\u6700\u7d42\u7d50\u679c\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3053\u3068\u304c\u5224\u660e\u3002\uff08\u30d0\u30ab\u306a\u5931\u6557\uff09<\/p>\n<h4>2020.02.03<\/h4>\n<p>\u30b5\u30fc\u30d0\u306essl\u8a3c\u660e\u66f8\u3092\u5b9f\u969b\u306e\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u308b\u3068\u8d77\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u79d8\u5bc6\u9375\u30fbSSL\u8a3c\u660e\u66f8\u30fb\u4e2d\u9593\u8a3c\u660e\u66f8\u306e\u4e09\u70b9\u304d\u3061\u3093\u3068\u5165\u308c\u305f\u3093\u3067\u3059\u304c\u3001Apache2.4\u3067\u4e2d\u9593\u8a3c\u660e\u66f8\u306e\u6271\u3044\u304c\u5909\u308f\u3063\u305f\u305f\u3081\u3068\u5224\u660e\u3002<br \/>\nSSL\u8a3c\u660e\u66f8\u3068\u4e2d\u9593\u8a3c\u660e\u66f8\u3092\u5358\u7d14\u306b\u304f\u3063\u3064\u3051\u3001\u4e2d\u9593\u8a3c\u660e\u66f8\u306e\u5b9a\u7fa9\u90e8\u5206\uff08SSLCertificateChainFile\uff09\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u304a\u3051\u3070\u3044\u3044\u3068\u5224\u308a\u8a66\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u540d\u524d\u304c\u9055\u3046\u3068\u6012\u3089\u308c\u3066\u8d77\u52d5\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5b9f\u6a5f\u3067\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3093\u3060\u2026\u2026 (sigh)<\/p>\n<h4>\u53c2\u8003\u306b\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u30b5\u30a4\u30c8<\/h4>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/ozuma.hatenablog.jp\/\"><strong>\u308d\u3070\u96fb\u5b50\u304c\u8a70\u307e\u3064\u3066\u3090\u308b<\/strong><\/a><br \/>\n\t\t<a href=\"https:\/\/ozuma.hatenablog.jp\/entry\/20130511\/1368284304\">\uff1a\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3092openssl\u3067\u4f5c\u308b\uff08\u8a73\u7d30\u7248\uff09<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/qiita.com\/\"><strong>Qiita<\/strong><\/a><br \/>\n\t\t\uff1ahttps\u306e\u8a2d\u5b9a\u3068\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8(\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8)\u306e\u4f5c\u6210<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/doruby.jp\/\"><strong>DoRuby<\/strong><\/a><br \/>\n\t\t\uff1aSSL\u8a3c\u660e\u66f8\u30da\u30a2\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/norm-nois.com\/\"><strong>\u3042\u304b\u3064\u304d\u306e\u304a\u5bbf<\/strong><\/a><br \/>\n\t\t<a href=\"https:\/\/norm-nois.com\/blog\/archives\/3105\">\uff1aApache2.4 + mod_ssl + SSL\u8a3c\u660e\u66f8 = \u3061\u3087\u3044\u3064\u307e\u3065\u304f\uff1f<\/a>\n\t<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Apache2\u3067\u306eSSL\u7d4c\u7531\u306e\u63a5\u7d9a\u74b0\u5883\u306e\u8a2d\u5b9a\u306f\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u5225\u306b\u5206\u3051\u307e\u3059\u3002 \u4e3b\u306b\/opt\/local\/etc\/apache2\/extra\/httpd-ssl.conf\u306e\u4fee\u6b63\u5185\u5bb9\u3068\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":7183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[115],"tags":[159,164,148,24],"class_list":["post-7153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-apache","tag-openssl","tag-server","tag-system"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.k-in.co.jp\/niwakan\/wp-content\/uploads\/2020\/02\/Apache_HTTP_server_logo_2016.png?fit=1200%2C458&ssl=1","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/7153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/comments?post=7153"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/7153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media\/7183"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=7153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=7153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=7153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}