{"id":1100,"date":"2012-03-26T21:50:34","date_gmt":"2012-03-26T12:50:34","guid":{"rendered":"http:\/\/www.vincentina.net\/wordpress\/?p=1100"},"modified":"2015-12-23T23:16:13","modified_gmt":"2015-12-23T14:16:13","slug":"%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e5%8f%97%e4%bf%a1%e3%82%92ssl%e3%81%ab%e5%a4%89%e3%81%88%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=1100","title":{"rendered":"\u30e1\u30fc\u30eb\u306e\u53d7\u4fe1\u3092SSL\u306b\u5909\u3048\u3066\u307f\u305f"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">\u3046\u307e\u304f\u30bf\u30a4\u30c8\u30eb\u304c\u4ed8\u3051\u308c\u306a\u304b\u3063\u305f\u306e\u3067 \u3084\u3063\u305f\u4e8b\u3092\u307e\u3093\u307e\u30bf\u30a4\u30c8\u30eb\u306b\u3057\u307e\u3057\u305f\uff01<\/span><\/p>\n<p><span style=\"color: #000000;\">\u53c2\u8003\u30b5\u30a4\u30c8<\/span><br \/>\n<span style=\"color: #000000;\"> <a href=\"http:\/\/centossrv.com\/postfix-tls.shtml\" target=\"_blank\"><span style=\"color: #000000;\">CentOS\u3067\u81ea\u5b85\u30b5\u30fc\u30d0\u69cb\u7bc9<br \/>\n<\/span><\/a><\/span><br \/>\n<span style=\"color: #000000;\"> \u307e\u305a\u306fOpenSSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u306a\u3093\u3067\u3059\u304c\u3001\u73fe\u884c\u30d0\u30fc\u3067\u306f\u3084\u3089\u306a\u304f\u3066<\/span><br \/>\n<span style=\"color: #000000;\"> \u554f\u984c\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u30b9\u30eb\uff5e\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3001\u610f\u5473\u3042\u308a\u3052\u306b\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> # cd \/etc\/pki\/tls\/certs\/<\/span><\/p>\n<p><span style=\"color: #000000;\">make\u3059\u308b\u3001\u3053\u306emake\u306f\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3084\u308b\u304b\u3089\u3053\u305d\u306e\u3088\u3046\u3067\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u5225\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> # make mail.pem<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e00\u90e8\u629c\u7c8b\u3057\u307e\u3059\u3068<\/span><\/p>\n<pre><span style=\"color: #ffffff;\">Generating a 2048 bit RSA private key ...........................................................+++ ..........+++ writing new private key to '\/tmp\/openssl.Y23241'<\/span><\/pre>\n<p><span style=\"color: #000000;\">\u898b\u305f\u307e\u307e\u306e\u89e3\u91c8\u3092\u3059\u308b\u3068\u30012048bit\u306e\u9375\u3092\u4f5c\u6210\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> pem\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3059\u304c\u3001cat\u3067\u4e2d\u304c\u898b\u308c\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> RSA PRIVATE KEY\u306ebegin\u304b\u3089end\u3068CERTIFICATE\u306ebegin\u304b\u3089end\u3068\u3044\u3046\u69cb\u6210\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3093\u3067\u304b\u3089\u3001\u5bfe\u8a71\u7684\u306b\u56fd\u3084\u4f4f\u6240\u3092\u5165\u308c\u3066\u3044\u304d\u3001\u6700\u5f8c\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u308c\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4eca\u56de\u306f\u53d7\u4fe1\u3060\u3051\u306a\u306e\u3067\uff57<\/span><br \/>\n<span style=\"color: #000000;\"> dovecot\u306e\u8a2d\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4fee\u6b63\u3057\u305f\u306e\u306f<\/span><br \/>\n<span style=\"color: #000000;\"> \/etc\/dovecot.conf\u306e\u4e2d\u306e\u4ee5\u4e0b\u306e\u90e8\u5206<\/span><\/p>\n<pre>ssl_disable = no ssl_cert_file = \/etc\/pki\/tls\/certs\/mail.pem ssl_key_file = \/etc\/pki\/tls\/certs\/mail.pem<\/pre>\n<p><span style=\"color: #000000;\">\u3053\u306e3\u884c\u3060\u3051\u3067\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u5c11\u306a\u3044\u3067\u3059\u3001\u3082\u3068\u3082\u3068OPENSSL\u306b\u5bfe\u5fdc\u3057\u3066\u308b\u306e\u3067\u5927\u3057\u305f\u4e8b\u3057\u306a\u304f\u3066\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u306a\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u3068\u3044\u3044\u3064\u3064\u30823\u56de\u307b\u3069\u3001[FAILED]\u306b\u306a\u308a\u307e\u3057\u305f\u304c\uff5e<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7d9a\u3044\u3066iptebles\u306b\u3066995\u756a\u3092\u958b\u3051\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u3053\u3053\u306f\u5404\u81ea\u3067\u8abf\u3079\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u518d\u8d77\u52d5\uff5e\u3001GO~ dovecot\uff5e<\/span><\/p>\n<p><span style=\"color: #000000;\">\/etc\/init.d\/dovecot restart<\/span><br \/>\n<span style=\"color: #000000;\"> \/etc\/init.d\/iptables restart<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7d42\u308f\u308a\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u306e\u3064\u3082\u308a\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u3082\u3046\u5c11\u3057\u7d9a\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7d9a\u304d\u306f\u3001\u3081\uff5e\u3089\uff5e\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305a\u306f\u3001\u3055\u3063\u3055\uff5e\u3068\u53d7\u4fe1\u30dd\u30fc\u30c8\u3092110\u756a\u304b\u3089995\u756a\u306b\u5909\u3048\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u3093\u3067\u304b\u3089\u3001\u3053\u3044\u3064\u306b\u306fSSL\u3092\u5229\u7528\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u4e0d\u89aa\u5207\u3060\u3051\u3069\u3001\u3053\u3053\u306f\u5206\u304b\u308b\u3063\u3057\u3087\uff1f<\/span><br \/>\n<span style=\"color: #000000;\"> \u81ea\u5206\u306b\u5411\u3051\u3066\u8a00\u3063\u3066\u307e\u3059\u304b\u3089\u306d\uff57<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3068\u308a\u3042\u3048\u305a\u53d7\u4fe1\u3092\u3059\u308b\u3068\u3001\u307e\u305a\u306f\u3001\u6012\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u56de\u907f\u3059\u308b\u70ba\u306b\u3001\u3053\u308c\u306f\u5b89\u5168\u306a\u3093\u3060\u3068\u6559\u3048\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u4fe1\u983c\u3057\u3066\u304f\u3060\u3055\u3044\uff01\u3000\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/span><br \/>\n<span style=\"color: #000000;\"> \u3058\u3083\u3001\u805e\u3044\u3066\u304f\u308c\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"># openssl x509 -in mail.pem -outform DER -out mail.der<\/span><br \/>\n<span style=\"color: #000000;\"> \u3068\u30c9\u30a4\u30c4\u8a9e\u307f\u305f\u3044\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3001SSH SCP\u3067\u3053\u3063\u3061\u3078\u98db\u3070\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30c0\u30d6\u30af\u30ea\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> <a href=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2012\/03\/dovessl02-e1450880128328.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2012\/03\/dovessl02-e1450880128328.jpg\" title=\"dovessl02\" width=\"429\" height=\"357\" class=\"alignnone wp-image-1103 size-full\" \/><\/a><\/span><br \/>\n<span style=\"color: #000000;\"> \u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u3001\u4fe1\u983c\u3055\u308c\u305f\u30eb\u30fc\u30c8\u8a3c\u660e\u6a5f\u95a2\u306e\u30b9\u30c8\u30a2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u3084\u3089\u306a\u3044\u3068\u4f55\u5ea6\u3082\u8868\u793a\u3057\u3061\u3083\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2012\/03\/dovessl05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2012\/03\/dovessl05.jpg\" title=\"dovessl05\" width=\"426\" height=\"451\" class=\"alignnone wp-image-1107 size-full\" \/><\/a><\/span><\/p>\n<p><span style=\"color: #000000;\">\u6700\u5f8c\u306b\u3001\u307b\u3093\u307e\u306b\u3048\u30fc\u306e\u3093\u304b\u30fc\uff1f<\/span><br \/>\n<span style=\"color: #000000;\"> \u3063\u3066\u4e8b\u306b\u300c\u306f\u3044\u300d\u3068\u7b54\u3048\u3066\u7d42\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0\u3081\u305a\u3089\u3057\u304f\u753b\u50cf\u3092\u3075\u3093\u3060\u3093\u306b\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #000000;\"> \u3053\u3093\u306a\u30b5\u30fc\u30d3\u30b9\u3081\u3063\u305f\u306b\u3057\u306a\u3044\u3093\u3060\u304b\u3089\u306d\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30b5\u30fc\u30d3\u30b9\u3067\u3082\u306a\u3044\u304b\uff57<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=1100\" data-text=\"\u30e1\u30fc\u30eb\u306e\u53d7\u4fe1\u3092SSL\u306b\u5909\u3048\u3066\u307f\u305f\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u3046\u307e\u304f\u30bf\u30a4\u30c8\u30eb\u304c\u4ed8\u3051\u308c\u306a\u304b\u3063\u305f\u306e\u3067 \u3084\u3063\u305f\u4e8b\u3092\u307e\u3093\u307e\u30bf\u30a4\u30c8\u30eb\u306b\u3057\u307e\u3057\u305f\uff01 \u53c2\u8003\u30b5\u30a4\u30c8 CentOS\u3067\u81ea\u5b85\u30b5\u30fc\u30d0\u69cb\u7bc9 \u307e\u305a\u306fOpenSSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u306a\u3093\u3067\u3059\u304c\u3001\u73fe\u884c\u30d0\u30fc\u3067\u306f\u3084\u3089\u306a\u304f\u3066 \u554f\u984c\u306a\u3044\u3088\u3046\u306a\u306e\u3067 &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=1100\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30e1\u30fc\u30eb\u306e\u53d7\u4fe1\u3092SSL\u306b\u5909\u3048\u3066\u307f\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1100","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1100"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/1100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}