

{"id":917,"date":"2016-04-15T22:45:00","date_gmt":"2016-04-15T13:45:00","guid":{"rendered":"https:\/\/curecode.jp\/tech\/?p=917"},"modified":"2017-03-21T10:54:28","modified_gmt":"2017-03-21T01:54:28","slug":"ssl-rsa-server-certificate-commonname-cn-does-not-match-warning","status":"publish","type":"post","link":"https:\/\/curecode.jp\/tech\/ssl-rsa-server-certificate-commonname-cn-does-not-match-warning\/","title":{"rendered":"SSL \u306e www \u3042\u308a\u306a\u3057\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3067 RSA server certificate CommonName (CN) does NOT match \u306e\u8b66\u544a\u3092\u6d88\u3059\u306b\u306f"},"content":{"rendered":"<h3>\u975eSSL\u30fbVirtualHost \u74b0\u5883\u4e0b\u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/h3>\n<p>\n  \u30c9\u30e1\u30a4\u30f3\u306e www \u3042\u308a (www.example.jp) \u3092 www \u306a\u3057 (example.jp) \u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u305b\u3066 URL \u3092\u7d71\u4e00\u3055\u305b\u308b\u3053\u3068\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3088\u306d\u3002\n<\/p>\n<p>\n  \u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u304c\u3001Apache \u306e\u8a2d\u5b9a\u3067 VirtualHost \u3068\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u3046\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002\n<\/p>\n<pre class=\"conf\">\r\n<VirtualHost *:80>\r\n      ServerName example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n\u3000\u3000\u3000\u2026(\u7565)\u2026\r\n<\/VirtualHost>\r\n\r\n<VirtualHost *:80>\r\n      ServerName www.example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      Redirect permanent \/ http:\/\/example.jp\/\r\n<\/VirtualHost>\r\n<\/pre>\n<h3>SSL \u74b0\u5883\u4e0b\u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08Apache 2.2\uff09<\/h3>\n<p>\n  \u3053\u308c\u304c SSL(<abbr title=\"Transport Layer Security\">TLS<\/abbr>) \u306e VirtualHost (<abbr title=\"Server Name Indication\">SNI<\/abbr>) \u3092\u4f7f\u3046\u5834\u5408\u3092\u8003\u3048\u307e\u3059\u30021\u679a\u306e SSL \u8a3c\u660e\u66f8\u3067 www \u306e\u3042\u308b\u306a\u3057\u306b <abbr title=\"Subject Alternative Names\">SANs<\/abbr> \u3068\u3044\u3046\u6a5f\u80fd\u3067\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\u3002\n<\/p>\n<pre class=\"conf\">\r\n<VirtualHost *:443>\r\n      ServerName example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      SSLEngine on\r\n      SSLProtocol all -SSLv2 -SSLv3\r\n      SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:HIGH:MEDIUM:!aNULL:!MD5:!RC4\r\n      SSLCertificateFile \/etc\/pki\/tls\/certs\/example_jp.crt\r\n      SSLCertificateKeyFile \/etc\/pki\/tls\/private\/example_jp.key\r\n\u3000\u3000\u3000\u2026(\u7565)\u2026\r\n<\/VirtualHost>\r\n\r\n<VirtualHost *:443>\r\n      ServerName www.example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      Redirect permanent \/ https:\/\/example.jp\/\r\n<\/VirtualHost>\r\n<\/pre>\n<p>\n  Apache 2.4 \u7cfb\u3060\u3068\u3053\u308c\u3067\u30a8\u30e9\u30fc\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001Apache 2.2 \u3060\u3068\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u3060\u3051\u306e www \u5074\u306b\u3082\u8a3c\u660e\u66f8\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u3042\u3001\u3042\u308b\u610f\u5473\u305d\u308c\u304c\u666e\u901a\u3067\u3059\u3088\u306d\u3002\n<\/p>\n<pre class=\"conf\">\r\n<VirtualHost *:443>\r\n      ServerName example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      SSLEngine on\r\n      SSLProtocol all -SSLv2 -SSLv3\r\n      SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:HIGH:MEDIUM:!aNULL:!MD5:!RC4\r\n      SSLCertificateFile \/etc\/pki\/tls\/certs\/example_jp.crt\r\n      SSLCertificateKeyFile \/etc\/pki\/tls\/private\/example_jp.key\r\n\u3000\u3000\u3000\u2026(\u7565)\u2026\r\n<\/VirtualHost>\r\n\r\n<VirtualHost *:443>\r\n      ServerName www.example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      Redirect permanent \/ https:\/\/example.jp\/\r\n      SSLEngine on\r\n      SSLProtocol all -SSLv2 -SSLv3\r\n      SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:HIGH:MEDIUM:!aNULL:!MD5:!RC4\r\n      SSLCertificateFile \/etc\/pki\/tls\/certs\/example_jp.crt\r\n      SSLCertificateKeyFile \/etc\/pki\/tls\/private\/example_jp.key\r\n<\/VirtualHost>\r\n<\/pre>\n<h3>\u30ed\u30b0\u306b RSA server certificate CommonName (CN) \uff5e does NOT match \u306e\u8b66\u544a<\/h3>\n<p>\n  \u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067\u3042\u308c\u3070\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3067\u30a8\u30e9\u30fc\u306f\u51fa\u305a\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3082\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001Apache \u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002\n<\/p>\n<pre><code class=\"apache\">\r\n[Mon Feb 22 00:00:33 2016] [warn] RSA server certificate CommonName (CN) `example.jp' does NOT match server name!?\r\n<\/code><\/pre>\n<p>\n  \u3053\u308c\u306f Apache \u306e\u8a2d\u5b9a\u3067\u3001SSL \u8a3c\u660e\u66f8\u306e\u30b3\u30e2\u30f3\u30cd\u30fc\u30e0\u3068 ServerName \u304c\u7570\u306a\u3063\u3066\u3044\u308b\u3068\u304d\u306b\u51fa\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002\u8a3c\u660e\u66f8\u306e SANs \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u304c\u8a18\u8f09\u3067\u304d\u307e\u3059\u304c\u3001Apache \u304c\u8a3c\u660e\u66f8\u306e\u30b3\u30e2\u30f3\u30cd\u30fc\u30e0\u3068\u3057\u3066\u5224\u65ad\u3059\u308b\u5834\u5408\u306b\u306f\u9069\u7528\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002\n<\/p>\n<p>\n\u3067\u306f\u3001SANs \u3092\u4f7f\u3063\u305f\u8a3c\u660e\u66f8\u3067 www\u3000\u306e\u3042\u308a\u306a\u3057\u3092\u7d71\u4e00\u3059\u308b\u305f\u3081\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3069\u3046\u3059\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u305d\u308c\u306f VirtualHost \u3092\u305d\u308c\u305e\u308c\u4f5c\u308b\u306e\u3067\u306f\u306a\u304f\u30011\u3064\u306e VirtualHost \u3067 ServerAlias \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068 mod_rewrite \u3092\u4f7f\u3048\u3070\u3046\u307e\u304f\u3044\u304d\u307e\u3059\u3002\n<\/p>\n<pre>\r\n<VirtualHost *:443>\r\n      ServerName example.jp\r\n      ServerAlias  www.example.jp\r\n      DocumentRoot \/var\/www\/vhosts\/example.jp\r\n      \u2026\uff08\u7565\uff09\u2026\r\n      RewriteEngine on\r\n      RewriteCond %{HTTP_HOST} ^www\\.ra-example\\.jp\r\n      RewriteRule ^(.*)$ https:\/\/example.jp$1 [R=301,L]\r\n\r\n      SSLEngine on\r\n      SSLProtocol all -SSLv2 -SSLv3\r\n      SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:HIGH:MEDIUM:!aNULL:!MD5:!RC4\r\n      SSLCertificateFile \/etc\/pki\/tls\/certs\/example_jp.crt\r\n      SSLCertificateKeyFile \/etc\/pki\/tls\/private\/example_jp.key\r\n      \u2026\uff08\u7565\uff09\u2026\r\n<\/VirtualHost>\r\n<\/pre>\n<p>\n  \u3053\u308c\u3067\u30ef\u30fc\u30cb\u30f3\u30b0\u3092\u51fa\u3055\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<p>\n  \u3053\u308c\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u8a3c\u660e\u66f8\u306e\u5834\u5408\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f Apache 2.4\u3000\u7cfb\u3067\u306f\u3053\u306e\u75c7\u72b6\u306f\u51fa\u306a\u3044\u3088\u3046\u3067\u3059\u3002Apache 2.2\u3001\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8(SNI)\u3001SANs \u306e SSL \u8a3c\u660e\u66f8 \u3068\u3044\u3046\u74b0\u5883\u4e0b\u3067\u306e\u3053\u3068\u3067\u3059\u3057\u3001\u898b\u305f\u76ee\u306b\u306f\u30a8\u30e9\u30fc\u306f\u51fa\u306a\u3044\u306e\u3067\u5b9f\u5bb3\u306f\u305d\u308c\u307b\u3069\u306a\u3044\u306e\u3067\u6c17\u3065\u304d\u306b\u304f\u3044\u30b1\u30fc\u30b9\u3067\u3059\u306d\u3002\n<\/p>\n<h3>IT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u4e2d\uff01<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306fIT\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u52df\u96c6\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u5c11\u4eba\u6570\u306e\u8077\u5834\u306a\u306e\u3067\u3001\u4e0a\u6d41\u30fb\u4e0b\u6d41\u3084\u30b5\u30fc\u30d0\u30fc\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5bfe\u5fdc\u306e\u57a3\u6839\u306a\u304f\u3001\u3042\u306a\u305f\u306e\u5f37\u307f\u3092\u6d3b\u304b\u3057\u306a\u304c\u3089 \u3044\u308d\u3044\u308d\u306a\u3053\u3068\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u53ef\u80fd\u3067\u3059\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\u306e\u672a\u7d4c\u9a13\u306e\u65b9\u3001\u7d4c\u9a13\u304c\u5c11\u306a\u3044\u65b9\u3082\u6b53\u8fce\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u3088\u308aIT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u306e\u63a1\u7528\u60c5\u5831\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/curecode.jp\/recruit\/itengineer\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/it_recruit.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n<h3>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u516c\u5f0f\u30a4\u30f3\u30b9\u30bf\u30b0\u30e9\u30e0<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306e\u65b0\u30b5\u30fc\u30d3\u30b9\u60c5\u5831\u3084\u3001\u30aa\u30d5\u30a3\u30b9\u30e9\u30a4\u30d5\u306e\u7d20\u6575\u306a\u77ac\u9593\u307e\u3067\u3002\u79c1\u305f\u3061\u306e\u65e5\u3005\u306e\u55b6\u307f\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/www.instagram.com\/curecode\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/insta_bn.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u975eSSL\u30fbVirtualHost \u74b0\u5883\u4e0b\u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 \u30c9\u30e1\u30a4\u30f3\u306e www \u3042\u308a (www.exa [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":592,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93,110],"tags":[21,111,112,113,114],"class_list":["post-917","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-3","category-ssl","tag-apache-2","tag-sans","tag-sni","tag-ssl","tag-virtualhost"],"_links":{"self":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/comments?post=917"}],"version-history":[{"count":5,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/917\/revisions"}],"predecessor-version":[{"id":940,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/917\/revisions\/940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media\/592"}],"wp:attachment":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media?parent=917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/categories?post=917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/tags?post=917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}