{"id":138,"date":"2013-08-30T12:00:00","date_gmt":"2013-08-30T03:00:00","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=138"},"modified":"2013-08-30T12:00:00","modified_gmt":"2013-08-30T03:00:00","slug":"dti_30","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2013\/08\/dti_30\/","title":{"rendered":"DTI\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\uff12\uff10 \u300c\u6587\u53e5\u304c\u3042\u308b\u306e\u304b\u3001\u304a\u4e0a\u306e\u304a\u58a8\u4ed8\u304d\u3058\u3083\uff01\u300d"},"content":{"rendered":"<p>\u30bf\u30a4\u30c8\u30eb\u3092\u3075\u3056\u3051\u3059\u304e\u3066\u3001\u691c\u7d22\u30b5\u30a4\u30c8\u3067\u306f\u4e0a\u4f4d\u306b\u4e0a\u304c\u3063\u3066\u6765\u308c\u306a\u3044\u3088\u306d\u3002<\/p>\n<p>\u3055\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3092\u624b\u306b\u5165\u308c\u305f\u306e\u3067\u3001Apache\u306b\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002<br>\nSSL\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>$ sudo vi \/etc\/httpd\/conf.d\/ssl.conf<br>\n\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u4f5c\u6210\u3057\u305f\u79d8\u5bc6\u9375\u3068\u8a3c\u660e\u66f8\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>SSLCertificateFile \/etc\/pki\/tls\/certs\/domain.pem<br>\nSSLCertificateKeyFile \/etc\/pki\/tls\/private\/domain.pem<\/p>\n<div>\nApache\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001<\/div>\n<p>$ sudo service httpd restart<br>\nhttpd \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ OK ]<br>\nhttpd \u3092\u8d77\u52d5\u4e2d: Apache\/2.2.15 mod_ssl\/2.2.15 (Pass Phrase Dialog)<br>\nSome of your private key files are encrypted for security reasons.<br>\nIn order to read them you have to provide the pass phrases.<br>\nServer yourdomain.com:443 (RSA)<br>\nEnter pass phrase: \u2190\u3053\u3053\u3067\u79d8\u5bc6\u9375\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b<br>\nOK: Pass Phrase Dialog successful.<\/p>\n<div>\n\u79d8\u5bc6\u9375\u304c\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u8d77\u52d5\u6642\u306b\u5165\u529b\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<div>\n\u3057\u304b\u3057\u3001\u3053\u308c\u306f\u3061\u3087\u3063\u3068\u5b9f\u7528\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/div>\n<div>\n\u306a\u306e\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u51fa\u529b\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u3057\u3066\u307f\u307e\u3059\u3002<\/div>\n<div>\n\u5834\u6240\u306f\u3069\u3053\u3067\u3082OK\u3067\u3059\u3002<\/div>\n<div>\n<p>$ sudo vi \/path\/to\/passphrase-script<\/p>\n<div>\n\u6b21\u306e\u5185\u5bb9\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/div>\n<p>#!\/bin\/sh<br>\necho &#8220;password&#8221;<br>\n\u30d5\u30a1\u30a4\u30eb\u306e\u5c5e\u6027\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>$ sudo chmod 500 \/path\/to\/passphrase-script\n<\/p><\/div>\n<div>\n\u5148\u307b\u3069\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u3073\u958b\u3044\u3066\u3001<\/div>\n<p>$ sudo vi \/etc\/httpd\/conf.d\/ssl.conf<\/p>\n<div>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/div>\n<p>SSLPassPhraseDialog &nbsp;exec:\/path\/to\/passphrase-script<\/p>\n<div>\nApache\u3092\u518d\u5ea6\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001<\/div>\n<div>\n<p>$ sudo service httpd restart<br>\nhttpd \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<br>\nhttpd \u3092\u8d77\u52d5\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]\n<\/p><\/div>\n<div>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u308b\u3053\u3068\u306a\u304f\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<\/div>\n<div>\n<\/div>\n<div>\n\u3061\u306a\u307f\u306b\u3001\u79d8\u5bc6\u9375\u306e\u6697\u53f7\u5316\u3092\u89e3\u3044\u3066\u304a\u304f\u3068\u3044\u3046\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/div>\n<p>$ sudo openssl rsa -in \/etc\/pki\/tls\/private\/domain.pem -out \/etc\/pki\/tls\/private\/nopass.pem<br>\nEnter pass phrase for \/etc\/pki\/tls\/private\/domain.pem: \u2190\u3053\u3053\u3067\u53c8\u3082\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b<br>\nwriting RSA key<\/p>\n<div>\n\u3055\u3066\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<p>http<b>s<\/b>:\/\/yourdomain.com\/<br>\n\u3061\u306a\u307f\u306b\u3001CAcert\u306e\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br>\n\u305d\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u306fChrome\u3002<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-FADiZo8DWpE\/UhjuMIRQrSI\/AAAAAAAADR8\/dRBVL9W5Feg\/s1600\/SSL_%E3%82%A8%E3%83%A9%E3%83%BC.png\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a3c\u660e\u66f8\u306f\u4fe1\u983c\u3067\u304d\u307e\u305b\u3093\" border=\"0\" height=\"130\" src=\"\/blog\/wp-content\/uploads\/2013\/08\/SSL_\u30a8\u30e9\u30fc.png\" title=\"\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a3c\u660e\u66f8\u306f\u4fe1\u983c\u3067\u304d\u307e\u305b\u3093\" width=\"320\"><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\" style=\"text-align: center;\">\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a3c\u660e\u66f8\u306f\u4fe1\u983c\u3067\u304d\u307e\u305b\u3093<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3084\u3063\u3071\u308a\u30c0\u30e1\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306b\u8a8d\u8a3c\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\n\u5ff5\u306e\u70ba\u306b\u8a3c\u660e\u66f8\u3092\u898b\u3066\u307f\u307e\u3059\u304c\u3001\u304d\u3061\u3093\u3068CAcert\u306b\u3066\u7f72\u540d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"http:\/\/1.bp.blogspot.com\/-1CijnWwkdOY\/Uhjv7MAvbgI\/AAAAAAAADSI\/jQ3lMO8w62E\/s1600\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88_2013_08_25_2_35.png\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u3053\u306e\u8a3c\u660e\u66f8\u306f\u4e0d\u660e\u306a\u6a5f\u95a2\u306b\u3088\u3063\u3066\u7f72\u540d\u3055\u308c\u3066\u3044\u307e\u3059\" border=\"0\" height=\"222\" src=\"\/blog\/wp-content\/uploads\/2013\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8_2013_08_25_2_35.png\" title=\"\u3053\u306e\u8a3c\u660e\u66f8\u306f\u4e0d\u660e\u306a\u6a5f\u95a2\u306b\u3088\u3063\u3066\u7f72\u540d\u3055\u308c\u3066\u3044\u307e\u3059\" width=\"320\"><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\" style=\"text-align: center;\">\u3053\u306e\u8a3c\u660e\u66f8\u306f\u4e0d\u660e\u306a\u6a5f\u95a2\u306b\u3088\u3063\u3066\u7f72\u540d\u3055\u308c\u3066\u3044\u307e\u3059<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001CAcert\u306eroot\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3059\u304b\uff1f<\/p>\n\n\n<p><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"728\" height=\"90\" alt=\"\" src=\"https:\/\/www24.a8.net\/svt\/bgt?aid=130801769428&amp;wid=002&amp;eno=01&amp;mid=s00000008091006093000&amp;mc=1\"><\/a>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www11.a8.net\/0.gif?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30bf\u30a4\u30c8\u30eb\u3092\u3075\u3056\u3051\u3059\u304e\u3066\u3001\u691c\u7d22\u30b5\u30a4\u30c8\u3067\u306f\u4e0a\u4f4d\u306b\u4e0a\u304c\u3063\u3066\u6765\u308c\u306a\u3044\u3088\u306d\u3002 \u3055\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3092\u624b\u306b\u5165\u308c\u305f\u306e\u3067\u3001Apache\u306b\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002 SSL\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002 $ sudo vi \/etc\/httpd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,130],"tags":[17,43],"class_list":["post-138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc","category-130","tag-dti","tag-vps"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media\/1368"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}