{"id":624,"date":"2012-10-01T21:36:31","date_gmt":"2012-10-01T12:36:31","guid":{"rendered":"http:\/\/www.webimpact.co.jp\/banchoblog\/?p=624"},"modified":"2012-10-02T11:10:31","modified_gmt":"2012-10-02T02:10:31","slug":"ssl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92%e6%9b%b4%e6%96%b0%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ab%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%ab%e5%bd%b9%e7%ab%8b%e3%81%a4%e3%82%b3%e3%83%9e","status":"publish","type":"post","link":"https:\/\/www.webimpact.co.jp\/engineerblog\/?p=624","title":{"rendered":"SSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3059\u308b\u3068\u304d\u306b\u30c1\u30a7\u30c3\u30af\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u307e\u3068\u3081"},"content":{"rendered":"<p>\u3059\u3063\u304b\u308a\u79cb\u3081\u3044\u3066\u304d\u3066\u3001\u3054\u98ef\u304c\u7f8e\u5473\u3057\u3044\u5b63\u7bc0\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3001shige \u3067\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u4eca\u56de\u306fSSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3059\u308b\u3068\u304d\u306b\u30c1\u30a7\u30c3\u30af\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u65b0\u3057\u3044SSL\u8a3c\u660e\u66f8\u3092\u7f6e\u304d\u63db\u3048\u308c\u3070\u3001\u304d\u3063\u3068\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u306e\u4e0d\u6574\u5408\u3067 Apache \u304c\u8d77\u52d5\u3057\u306a\u3044\u306a\u3093\u3066\u30c8\u30e9\u30d6\u30eb\u3082\u9003\u308c\u3089\u308c\u308b\u306f\u305a\uff01<\/p>\n<h2>1. \u79d8\u5bc6\u9375\u3068CSR\u306e\u4f5c\u6210<\/h2>\n<p>\u307e\u305a\u3001\u304a\u99b4\u67d3\u307f\u306e openssl \u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30af\u30c3\u3068\u79d8\u5bc6\u9375\u3068CSR\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ openssl req -new -newkey rsa:2048 -nodes -keyout www.webimpact.co.jp.key -out www.webimpact.co.jp.csr<br \/>\n[\/bash]<\/p>\n<h2>2. \u8a8d\u8a3c\u5c40\u3078\u63d0\u51fa<\/h2>\n<p>\u6b21\u306b\u3001\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u308b\u8a8d\u8a3c\u5c40\u306bCSR\u3092\u63d0\u51fa\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>3. \u30b5\u30fc\u30d0\u30fc\u306b\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u3092\u8a2d\u7f6e<\/h2>\n<p>\u8a8d\u8a3c\u5c40\u304b\u3089\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3057\u3066\u3082\u3089\u3048\u305f\u3089\u3001\u30b5\u30fc\u30d0\u306b\u300cSSL\u8a3c\u660e\u66f8\u300d\u3068\u300c\u79d8\u5bc6\u9375\u300d\u3092\u8a2d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p>SSL\u8a3c\u660e\u66f8\u3084\u79d8\u5bc6\u9375\u3092\u6b63\u3057\u3044\u7d44\u5408\u305b\u3067\u8a2d\u7f6e\u3067\u304d\u3066\u3044\u308b\u304b\u306f\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b63\u3057\u3044\u7d44\u5408\u305b\u306a\u3089\u3001\u51fa\u529b\u7d50\u679c\u304c\u5168\u3066\u540c\u3058\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u9055\u3046\u5834\u5408\u306f\u3001Apache \u518d\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3055\u305b\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u304c\u3093\u3070\u3063\u3066\u6b63\u3057\u3044\u7d44\u5408\u305b\u3067\u8a2d\u7f6e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>[bash]<br \/>\n$ openssl x509 -noout -modulus -in www.webimpact.co.jp.crt | openssl md5<br \/>\ne6fs34fvgs4sg6df3t0eh3453h531h35<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n$ openssl rsa -noout -modulus -in www.webimpact.co.jp.key | openssl md5<br \/>\ne6fs34fvgs4sg6df3t0eh3453h531h35<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n$ openssl req -noout -modulus -in www.webimpact.co.jp.csr | openssl md5<br \/>\ne6fs34fvgs4sg6df3t0eh3453h531h35<br \/>\n[\/bash]<\/p>\n<p>\u307e\u305f\u3001\u8a3c\u660e\u66f8\u306e\u671f\u9650\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ openssl x509 -in www.webimpact.co.jp.crt -noout -dates<br \/>\nnotBefore=Jun 20 10:51:23 2012 GMT<br \/>\nnotAfter=Aug 22 14:35:30 2015 GMT<br \/>\n[\/bash]<\/p>\n<p>\u4ed6\u306b\u3082\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u8a3c\u660e\u66f8\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ openssl x509 -in www.webimpact.co.jp.crt -text<br \/>\n[\/bash]<\/p>\n<p>\u6b21\u306b\u3001Apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb httpd.conf \u3092\u7de8\u96c6\u3057\u305f\u5834\u5408\u306f\u3001\u30b5\u30fc\u30d0\u3092\u518d\u8d77\u52d5\u3059\u308b\u524d\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ apachectl configtest<br \/>\nSyntax OK<br \/>\n[\/bash]<\/p>\n<p>httpd.conf \u304c\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3057\u305f\u3089\u3001\u6700\u5f8c\u306b Apache \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ httpd restart<br \/>\n[\/bash]<\/p>\n<h2>4. \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u78ba\u8a8d<\/h2>\n<p>\u4f55\u4e8b\u3082\u306a\u3051\u308c\u3070\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089SSL\u8a3c\u660e\u66f8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c\u767a\u884c\u65e5\u300d\u3084\u300c\u6709\u52b9\u671f\u9650\u300d\u304c\u6700\u65b0\u306e\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001SSL\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<p>[\u53c2\u8003] \uff1a <a href=\"http:\/\/doruby.kbmj.com\/nyan_blog\/20120326\/SSL_\">SSL\u8a3c\u660e\u66f8\u30da\u30a2\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3059\u3063\u304b\u308a\u79cb\u3081\u3044\u3066\u304d\u3066\u3001\u3054\u98ef\u304c\u7f8e\u5473\u3057\u3044\u5b63\u7bc0\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3001shige \u3067\u3054\u3056\u3044\u307e\u3059\u3002 \u3055\u3066\u3001\u4eca\u56de\u306fSSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3059\u308b\u3068\u304d\u306b\u30c1\u30a7\u30c3\u30af\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002 \u3053\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u65b0\u3057\u3044SSL\u8a3c\u660e\u66f8\u3092\u7f6e &hellip; <a href=\"https:\/\/www.webimpact.co.jp\/engineerblog\/?p=624\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;SSL\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3059\u308b\u3068\u304d\u306b\u30c1\u30a7\u30c3\u30af\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u307e\u3068\u3081&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-apache","category-ssl"],"_links":{"self":[{"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=624"}],"version-history":[{"count":15,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/posts\/624\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=\/wp\/v2\/posts\/624\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webimpact.co.jp\/engineerblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}