{"id":1482,"date":"2020-02-03T10:28:07","date_gmt":"2020-02-03T01:28:07","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1482"},"modified":"2020-03-13T14:35:20","modified_gmt":"2020-03-13T05:35:20","slug":"post-1482","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/02\/03\/post-1482\/","title":{"rendered":"DEMO\u30b5\u30fc\u30d0\u30fc\u306bSSL\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u6b21\u56de\u697d\u306b\u306a\u308b\u70ba\u306e\u30e1\u30e2"},"content":{"rendered":"<h2>DEMO\u30b5\u30fc\u30d0\u30fc\u306bSSL\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u6b21\u56de\u697d\u306b\u306a\u308b\u70ba\u306e\u30e1\u30e2<\/h2>\n<p>\u77e5\u3063\u3066\u3057\u307e\u3048\u3070\u300c\u306a\u3093\u3060\uff5e\u300d\u3068\u8a00\u3046\u4e8b\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u56db\u82e6\u516b\u82e6\u3059\u308b\u3082\u306e\u3002<br \/>\n\u79c1\u306e\u77e5\u8b58\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u306b\u5bc4\u3063\u3066\u3044\u3066\u30b5\u30fc\u30d0\u30fc\u77e5\u8b58\u306f\u4e4f\u3057\u3044\u306e\u3067\u8abf\u3079\u306a\u304c\u3089\u306e\u8a2d\u5b9a\u3067\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u30c7\u30e2\u30b5\u30fc\u30d0\u30fc\u306f\u3010\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8 VPS\u3011HTTP<wbr \/>\u30b5\u30fc\u30d0\u30fc\u306fApache\u3002<br \/>\n\u3053\u3053\u306b\u3010JPRS\u3011\u306eSSL\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u203b\u7121\u6599SSL(Let's Encrypt)\u306f\u5225\u306e\u6a5f\u4f1a\u306b<\/p>\n<p>\u306a\u305cSSL\u5316\u304c\u5fc5\u8981\u306a\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u3072\u3068\u3048\u306bWowma!\u3078\u306e\u5bfe\u5fdc\u306e\u70ba\u3067\u3059\u3002<br \/>\nWowma!\u3067\u306f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u793e\u30b5\u30a4\u30c8\u3078\u306e\u30ea\u30f3\u30af\u3067\u8cc4\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u8d85\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u697d\u5929\u5e02\u5834\u306e\u69d8\u306b\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u5236\u9650\u3092\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u6e08\u307f\u307e\u3059\u3057\u3001\u305d\u306e\u70ba\u306e\u524a\u9664\u6307\u793a\u3092\u51fa\u3055\u306a\u304f\u3066\u3044\u3044\uff01<br \/>\n\u3053\u308c\u306f\u4ed6\u306e\u30e2\u30fc\u30eb\u3068\u7570\u306a\u308bWowma!\u306e\u96a0\u308c\u305f\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002<br \/>\n\u307e\u3041\u30c7\u30e2\u30b5\u30a4\u30c8\u306a\u306e\u3067\u3001\u5b9f\u969b\u306b\u30ea\u30f3\u30af\u3092\u63d0\u4f9b\u3059\u308b\u4e8b\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u305d\u3053\u3089\u8fba\u306f\u30c6\u30b9\u30c8\u306e\u610f\u5473\u3082\u8fbc\u3081\u3066\u306d\u3002<\/p>\n<h3>SSL\u5316\u306e\u3084\u308b\u4e8b\u30ea\u30b9\u30c8<\/h3>\n<p>SSL\u8a2d\u5b9a\u3067\u884c\u3046\u4e8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"paperBox\">\n<ol>\n<li><strong>mod_ssl\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/li>\n<li><strong>OpenSSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/li>\n<li><strong>openssl.cnf\u3067\u8a3c\u660e\u66f8\u671f\u9593\u306e\u8a2d\u5b9a\u3092\u884c\u3046<\/strong><\/li>\n<li>\u4e71\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/li>\n<li>\u79d8\u5bc6\u9375\u306e\u4f5c\u6210<\/li>\n<li>CSR\u306e\u4f5c\u6210<\/li>\n<li>SSL\u8a3c\u660e\u66f8\u306e\u767a\u884c\u624b\u7d9a\u304d(\u7533\u3057\u8fbc\u307f)<\/li>\n<li>\u8a3c\u660e\u66f8\u767a\u884c\u3092\u5f85\u3064\u203b\u8a8d\u8a3c\u5c40\u3084\u30b5\u30fc\u30d3\u30b9\u306b\u3088\u3063\u3066\u5373\u65e5\uff5e\u6570\u9031\u9593\u304b\u304b\u308b\u3082\u306e\u307e\u3067\u3042\u308b<\/li>\n<li>\u767a\u884c\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3092DL<\/li>\n<li>\u4e2d\u9593\u8a3c\u660e\u3082DL<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u306b\u8a3c\u660e\u66f8\u3092\u914d\u7f6e<\/li>\n<li>\/etc\/httpd\/conf.d\/ssl.conf \u306b\u8a3c\u660e\u66f8\uff06Key\u306e\u5834\u6240\u3092\u6307\u793a<\/li>\n<li>\/etc\/httpd\/conf\/httpd.conf \u306b ssl.conf\u306e\u8aad\u8fbc\u3092\u6307\u793a<\/li>\n<li>sudo systemctl restart httpd\u00a0 (Apache\u518d\u8d77\u52d5)\u3092\u5b9f\u884c\u3057\u3066SSL\u306e\u7a3c\u50cd\u3092\u78ba\u8a8d\u203bhttps:\/\/\u3067\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b<\/li>\n<li>80\u756a\u30dd\u30fc\u30c8\u21d2443\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u306e\u8a2d\u5b9a\uff08\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u3084 http:\/\/\u3067\u7d44\u3093\u3067\u3044\u308b\u30d1\u30fc\u30c4\u7b49\uff09\u3092\u6539\u4fee\u3059\u308b<\/li>\n<li>Apache\u518d\u8d77\u52d5\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u306a\u3044\u69d8\u306b\u8a2d\u5b9a\u3059\u308b\u203b\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5\u3067\u305d\u306e\u307e\u307e\u7acb\u3061\u4e0a\u304c\u308b\u3088\u3046\u306b\u3002<\/li>\n<li>sudo systemctl restart httpd\u00a0 (Apache\u518d\u8d77\u52d5) \u3067\u8a2d\u5b9a\u5b8c\u4e86<\/li>\n<\/ol>\n<\/div>\n<p>\u3053\u3046\u3084\u3063\u3066\u66f8\u304d\u51fa\u3057\u3066\u307f\u308b\u3068\u300c\u7d50\u69cb\u3084\u308b\u3053\u3068\u3042\u308b\u306a\u3041\u300d\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u306d\u3002<\/p>\n<p>\u5168\u90e8\u306e\u5185\u5bb9\u3092\u66f8\u304f\u3068\u76f8\u5f53\u9577\u3044\u8a18\u4e8b\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u53d6\u308a\u5408\u3048\u305a\u5206\u5272\u3057\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u7c21\u5358\u306a\uff11~\uff13\u307e\u3067\u3092\u3002<\/p>\n<h3>mod_ssl\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>mod_ssl\u306fApache\u30e6\u30fc\u30b6\u30fc\u5fc5\u9808\u306e\u69d8\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">#\u547d\u4ee4\r\nrpm -aq | grep mod_ssl\r\n\r\n#\u5fdc\u7b54\r\nmod_ssl-2.4.6-90.el7.centos.x86_64<\/pre>\n<p>\u3053\u308c\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002\u5fdc\u7b54\u306e\u3088\u3046\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8fd4\u3063\u3066\u304f\u308c\u3070\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">yum -y install mod_ssl<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u547d\u4ee4\u306f\u3053\u308c\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u306e\u78ba\u8a8d\u306f\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5b58\u5728\u3067\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">sudo vim \/etc\/httpd\/conf.d\/ssl.conf<\/pre>\n<p>\u3053\u308c\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u304c\u4f55\u3082\u306a\u3051\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u4e0a\u624b\u304f\u3044\u3063\u3066\u306a\u3044\u3068\u5224\u65ad\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u7406\u7531\u3092\u63a2\u308a\u307e\u3059\u3002<\/p>\n<h3>OpenSSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>OpenSSL\u306e\u5b58\u5728\u78ba\u8a8d\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"\">openssl version<\/pre>\n<p>\u3053\u308c\u3067\u3001\u5024\u304c\u8fd4\u3063\u3066\u3053\u306a\u304b\u3063\u305f\u6642\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">yum install openssl-devel<\/pre>\n<p>\u3053\u308c\u3082yum\u3067\u884c\u3051\u308b\u304b\u3089\u8d85\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h3>openssl.cnf\u3067\u8a3c\u660e\u66f8\u671f\u9593\u306e\u8a2d\u5b9a\u3092\u884c\u3046<\/h3>\n<p>OpenSSL.cnf\u306e\u4e2d\u306b\u306f\u671f\u9593\u306e\u8a2d\u5b9a\u7b87\u6240\u304c\u3042\u308a\u3001\u8a8d\u8a3c\u5c40\u3078\u7533\u8acb\u3059\u308b\u969b\u306b\u3053\u306e\u5024\u304c\u8aad\u307e\u308c\u308b\u3068\u306e\u4e8b\u3002<br \/>\n\u203b\u8a73\u3057\u304f\u306f\u7406\u89e3\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u304c<\/p>\n<p>\u3068\u8a00\u3046\u4e8b\u3067\u3001 OpenSSL.cnf\u3092\u5f04\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">sudo vim \/etc\/pki\/tls\/openssl.cnf<\/pre>\n<p>\u3053\u306e\u4e2d\u306e\u5927\u4f5370\u884c\u76ee\u306b\u3042\u308b\u3010default_days\u3011\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">#70\u884c\u76ee\u304f\u3089\u3044\r\ndefault_days    = 365<\/pre>\n<p>\u8a8d\u8a3c\u6a5f\u95a2\u304c1\u5e74\u3060\u3063\u305f\u3089365\u65e5\u300210\u5e74\u3060\u3063\u305f\u30893650\u65e5\u306a\u306e\u3067\u305d\u306e\u65e5\u6570\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>SSL\u8a8d\u8a3c\u3063\u3066\u610f\u5916\u3068\u3084\u308b\u3053\u3068\u591a\u3044\u3093\u3067\u3059\u306d\u3002<br \/>\n\u6163\u308c\u308b\u3068\u7c21\u5358\u306b\u8a2d\u7f6e\u3067\u304d\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u79c1\u306f2\u65e5\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u8a00\u3046\u4e8b\u3067\u3001\u7d20\u65e9\u304f\u7d42\u3048\u308b\u305f\u3081\u306e\u5099\u5fd8\u9332 \u7b2c\u4e00\u5f3e\u3067\u3057\u305f\u3002<br \/>\n\u95a2\u9023\u8a18\u4e8b\uff1a\u3010<a href=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/02\/28\/post-1492\/\">\u5de5\u7a0b\uff1a4\uff5e8<\/a>\u3011\/\u3010<a href=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/03\/13\/post-1566\/\">\u5de5\u7a0b\uff1a9\uff5e18<\/a>\u3011<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DEMO\u30b5\u30fc\u30d0\u30fc\u306bSSL\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u6b21\u56de\u697d\u306b\u306a\u308b\u70ba\u306e\u30e1\u30e2 \u77e5\u3063\u3066\u3057\u307e\u3048\u3070\u300c\u306a\u3093\u3060\uff5e\u300d\u3068\u8a00\u3046\u4e8b\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u56db\u82e6\u516b\u82e6\u3059\u308b\u3082\u306e\u3002 \u79c1\u306e\u77e5\u8b58\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u306b\u5bc4\u3063\u3066\u3044\u3066\u30b5\u30fc\u30d0\u30fc\u77e5\u8b58\u306f\u4e4f\u3057\u3044\u306e\u3067\u8abf\u3079\u306a\u304c\u3089\u306e\u8a2d\u5b9a\u3067\u3057\u305f\u3002 \u3061\u306a\u307f\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[34],"tags":[489,54,487,486,98,488,485,57,436,490,491],"class_list":["post-1482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-memorandum","tag-centos7","tag-html","tag-httpd-conf","tag-https","tag-php","tag-ssl-conf","tag-ssl","tag-wowma","tag-vps","tag-491"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/11\/laravel_logo.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1482"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1482\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/944"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}