¸æºä¹õ³Ù¤Î¹õÀÐ

Àè¤Ë¼Õ¤Ã¤Æ¤ª¤­¤Þ¤¹¡£
¸æºä¹õ³Ù¤Ï¡¢ÉÙ»ÎÈ¢º¬°ËƦ¹ñΩ¸ø±à¤È»³Íü¸©Å«¿á»Ô¤Î¶­³¦¤Ç¤¹¡£
¤É¤Á¤é¤Î½êͭʪ¤Ë¤Ê¤ë¤Î¤«¡¢¤ï¤«¤ê¤Þ¤»¤ó¤¬¿½¤·Ìõ¤´¤¶¤¤¤Þ¤»¤ó¡£
¸æºä¹õ³Ù¤Ç¾®¤µ¤ÊÀФò½¦¤Ã¤Æ¤­¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£

»ÒÏ¢¤ì¤Î¥Ï¥¤¥­¥ó¥°¤Ç¡¢Å·²¼Ãã²°¡Á¸æºä»³¡Á¹õ³Ù¡Á¿·Æ»Æ½¤ò·Ð¤ÆÂçÀФޤDzö¤ê¤Þ¤·¤¿¤¬¡¢

¸æºä¹õ³Ù0

ÅÓÃæ¡¢¹õ³Ù»³ÄºÉÕ¶á¤Ç¿¿¹õ¤ÊÀФ¬Âô»³¤¢¤ë¤Î¤Ë¶Ã¤­¡¢
¤³¤ì¤¬¹õ³Ù¤ÎͳÍè¤Ê¤Î¤«¡¢¤Þ¤¿¡¢¤Ê¤ó¤Ç¤³¤ó¤Ê¤È¤³¤í¤Ç¹õÍËÀФʤ󤫤¢¤ë¤Î¤À¤í¤¦¡£
Åù¤È»×¤¤¤Ä¤Ä¾®¤µ¤ÊÀФò½¦¤Ã¤Æ¤­¤Þ¤·¤¿¡£

¸æºä¹õ³Ù£±

µ¢¤Ã¤ÆÍè¤ÆÄ´¤Ù¤ë¤È¡¢È¾Ê¬Àµ²ò¡¢È¾Ê¬´Ö°ã¤¤¤Ç¤·¤¿¡£

¹õ³Ù¤È¤¤¤¦Ì¾Á°¤Î»³¤ÏÁ´¹ñ¤ËÂô»³¤¢¤ë¤Î¤Ç¡¢¸æºä»³²ô¤ÎºÇ¹âÊö¤Î¤³¤È¤ò
¾¤Î¹õ³Ù¤È¶èÊ̤¹¤ë°ÕÌ£¤ÇŽ¤°ìÈÌŪ¤Ë¸æºä¹õ³Ù¡Ê¤ß¤µ¤«¤¯¤í¤À¤±¡Ë¤È¸Æ¤ó¤Ç¤¤¤Þ¤¹¡£

¸æºä¹õ³Ù¤ÎͳÍè¤Ï½ôÀ⤢¤ë¤è¤¦¤Ç¡¢
­¡¿ËÍÕ¼ù¤Ê¤É¤Î¹õ¤¤ÌÚ¡¹¤Ëʤ¤ï¤ì¤Æ¤¤¤ë
­¢»³ÄºÉô¤ÏÍîÍÕ¼ù¤ÇŽ¤¤½¤Î¹ÈÍÕ¤¬¹õ³ì¿§¤Ë¸«¤¨¤ë
­£´ä¤Î¤³¤È¤òŽ¢¥¯¥éŽ£¤È¤¤¤¤Ž¤²Ï¸ý¸Ð¦¤«¤é»³ÄºÉÕ¶á¤ËÂç´ä¤¬¸«¤¨¤ÆŽ¤¤½¤ÎŽ¢¥¯¥éŽ£¤¬¤Ê¤Þ¤Ã¤¿
¤Ê¤É¤Î¤è¤¦¤Ç¤¹¡£

º£²ó¡¢È¯¸«¤·¤¿¹õ¤¤ÀФǤ¹¤¬¡¢ÉôʬÉôʬ¤Ëº½´ä¤ä¸¼Éð´ä¤Ë¸«¤¨¤ëÉôʬ¤¬¤¢¤ê¡¢
¾¯¤·Ëᤱ¤Ð¡¢ËÜÍè¤Îȯ¿§¤¬³Îǧ¤Ç¤­¤ë¤À¤í¤¦¤È¡¢¥ä¥¹¥ê¤ÇËᤤ¤¿¤È¤³¤í¡¢
¸¼Éð´ä¡Ê¥°¥ê¡¼¥ó¥¿¥Õ¤«¤Ê¡©¡Ë¤Ç¤·¤¿¡£

¸æºä¹õ³Ù2


¤Ê¤¼¹õ¤¯¤Ê¤Ã¤¿¤Î¤«¡¢¤Ê¤¼¹õ³Ù¤Î»³Äº¤À¤±¤Ë¤¢¤Ã¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©

¤½¤ÎÅú¤¨¤Ï¡¢¾å¤Î­¡­¢¤Ç¤¹¡£

¸¼Éð´ä¤Î¾å¤Ë¡¢ÀѤâ¤Ã¤¿¼ùÌÚ¤äÍդιõ¿§¤¬¡¢
²¿Ëüǯ¡¦¤â¤·¤¯¤Ï²¿½½Ëüǯ¤Î»þ¤ò¤«¤±¤Æ¡¢´ä¤ÎɽÌ̤ˤ·¤ßÉÕ¤¤¤¿¤è¤¦¤Ç¤¹¡£
Àö¤Ã¤¿¤°¤é¤¤¤Ç¤Ï¼è¤ì¤Þ¤»¤ó¡£²¿Ëüǯʬ¤Î¹¤¤È¤â¸À¤¨¤Þ¤¹¡£

¶Ã¤­¤Þ¤·¤¿¡£À¨¤¤¤Ç¤¹¤Í¡£

author : HUNDREDSOFT | - | -

SSL¥Þ¥ë¥Á¥µ¥¤¥È¤Î¥Æ¥¹¥È´Ä¶­

¥æ¡¼¥¶¡¼¤¬Ê£¿ô¤Î¥µ¥¤¥È¤òWordpress¤Ç±¿ÍѤ·¤Æ¤¤¤Æ¡¢¥Æ¥¹¥È´Ä¶­ÍѤËPC¤ÎVMware¤ÇCentOS 6.5¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤ó¤Ê¤ËÉÑÈˤ˥ƥ¹¥È¥µ¥¤¥È¤¬É¬Íפˤʤé¤Ê¤¤¤³¤È¤«¤é¡¢¼¡¤Î¼ê½ç¤Ç¥Æ¥¹¥È´Ä¶­¤ò¹½ÃÛ¤·¤Æ¤¤¤Þ¤¹¡£

£±¡¥Êѹ¹¤¬É¬Íפʥµ¥¤¥È¤À¤±¤ò¡¢ËÜÈִĶ­¤«¤éFTP¤Ç¤´¤Ã¤½¤ê¥³¥Ô¡¼(chown -R apache:apache¤ò˺¤ì¤º¤Ë)
£²¡¥¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥¨¥¯¥¹¥Ý¡¼¥È¤È¥¤¥ó¥Ý¡¼¥È
£³¡¥VirtualHost¤ÎÄêµÁ¤ò¥³¥Ô¡¼¤·¤¿¥µ¥¤¥È̾¤ËÊѹ¹
£´¡¥¥Ö¥é¥¦¥¶Â¦OS¤Îhosts¥Õ¥¡¥¤¥ë¤ò½ñ¤­´¹¤¨¡£

´ðËÜŪ¤Ë¤Ï¤³¤ì¤À¤±¤Ç¡¢ËÜÈÖ¤ÈƱ°ì¤Î¥Æ¥¹¥È´Ä¶­¤¬ºîÀ®¤Ç¤­¤Þ¤¹¡£

¥µ¥¤¥È´Ö¤ÎÏ¢·È¤ò¥Æ¥¹¥È¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢VirtualHost¤ÎÄêµÁ¤òÊ£¿ô¤Ë¤·¤Þ¤¹¡£
¤È¤³¤í¤¬¡¢SSL¥µ¥¤¥È¤òÊ£¿ôÆþ¤ì¤ëÊýË¡¤¬¤ï¤«¤é¤º¡¢SSL¥µ¥¤¥È´Ö¤ÎÏ¢·È¥Æ¥¹¥È¤¬¤Ç¤­¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£

apache¤ÎSSL¤Ï´ðËÜŪ¤ËIP¥Ù¡¼¥¹¤ÎVirtualHost¤·¤«Ç§¤á¤Ê¤¤¤³¤È¤¬¸¶°ø¤Ç¤¹¡£
¼ê¤Ã¼è¤êÁ᤯¤Ï¡¢CentOS¤ò¥³¥Ô¡¼¤·¤Æ¡¢¤â¤¦°ì¤Ä¥Æ¥¹¥È´Ä¶­¤òºîÀ®¤·¡¢VMware¤Ç£²¤Ä¤ÎCentOS¤òµ¯Æ°¤¹¤ë¤³¤È¤Ç¤¹¤¬¡¢
¥Ç¥£¥¹¥¯ÍÆÎ̤ο´Çۤȡ¢´ÉÍý¤âÌÌÅݤǤ¹¡££³¤Ä¤Ë¤Ê¤ë¤È¤µ¤¹¤¬¤Ë¥Ï¥¤¥¹¥Ú¥Ã¥¯¤ÎPC¤¬É¬Íפˤʤê¤Þ¤¹¡£


¥Í¥Ã¥È¤ò×Ç×Ó¤¦¤È¡¢
¡ÖIP¥¨¥¤¥ê¥¢¥¹¡×¤ò»È¤Ã¤ÆIPËè¤Ë¥µ¥¤¥È¤òʬ¤±¤ë¡£
¡ÖSubject Alternative Names¡ÊSAN¡Ë¤ò´Þ¤à¾ÚÌÀ½ñ¡×¤ò»È¤¦¡£
¤Î£²¤Ä¤ÎÊýË¡¤¬¤¢¤ê¤½¤¦¤Ç¤¹¡£

¡ÖIP¥¨¥¤¥ê¥¢¥¹¡×¤Î¾ì¹ç¤Ï¡¢
/etc/sysconfig/network-scripts/ifcfg-eth0 ¤Ë¡¢IPADDR2,NETMASK2 ¤òÄɲ䷤ơ¢

ssl.conf¤ò

<VirtualHost 192.168.0.1:443>
    DocumentRoot /var/www/html/xxxx.com
    ServerName www.xxxx.com:443
    ...
    SSLCertificateFile /etc/ht tpd/conf/server1.crt
    SSLCertificateKeyFile /etc/ht tpd/conf/server1.key
</VirtualHost>

<VirtualHost 192.168.0.2:443>
    DocumentRoot /var/www/html/yyyy.jp
    ServerName www.yyyy.jp:443
    ...
    SSLCertificateFile /etc/ht tpd/conf/server2.crt
    SSLCertificateKeyFile /etc/ht tpd/conf/server2.key
</VirtualHost>

¤Î¤è¤¦¤Ë¤¹¤ë¤Î¤À¤í¤¦¤È»×¤¤¤Þ¤¹¤¬¡¢
º£²ó¤Ï¡¢SAN¤ò»È¤¦ÊýË¡¤ò»î¤·¤Þ¤·¤¿¡£


¡Ú/etc/pki/tls/openssl.conf ¤Î½¤Àµ¡Û

[ req ]
req_extensions = v3_req ¢«¥³¥á¥ó¥È¤ò¤Ï¤º¤¹¡£

[ v3_req ]
subjectAltName = @alt_names ¢«Äɲ乤ë

[ alt_names ] ¢«¤³¤Î¥»¥¯¥·¥ç¥ó¤òÄɲÃ
DNS.1 = www.xxxx.com
DNS.2 = www.yyyy.jp
DNS.2 = www.zzzz.co.jp


¡Ú¸°¥Õ¥¡¥¤¥ëºîÀ®¡Û

/etc/pki/tls/private ¤Ë°ÜÆ°¤·¤Æ

openssl genrsa 2048 > server.key
openssl req -new -key server.key > server.csr
openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt

¤Ç¤­¤¿¥Õ¥¡¥¤¥ë¤ò /etc/ht tpd/conf ¤Ë¥³¥Ô¡¼¡£


¡Ússl.conf¤ÎÊÔ½¸¡Û

ssl.conf ¤Ç¤Ï¡¢VirtualHost ¤Î¤È¤³¤í¤ò¼¡¤Î¤è¤¦¤ËÊѹ¹¤·¤Þ¤¹¡£

<VirtualHost *:443>
    DocumentRoot /var/www/html/xxxx.com
    ServerName www.xxxx.com:443
    ...
    SSLCertificateFile /etc/ht tpd/conf/server.crt
    SSLCertificateKeyFile /etc/ht tpd/conf/server.key
</VirtualHost>

<VirtualHost *:443>
    DocumentRoot /var/www/html/yyyy.jp
    ServerName www.yyyy.jp:443
    ...
    SSLCertificateFile /etc/ht tpd/conf/server.crt
    SSLCertificateKeyFile /etc/ht tpd/conf/server.key
</VirtualHost>

<VirtualHost *:443>
    DocumentRoot /var/www/html/zzzz.co.jp
    ServerName www.zzzz.co.jp:443
    ...
    SSLCertificateFile /etc/ht tpd/conf/server.crt
    SSLCertificateKeyFile /etc/ht tpd/conf/server.key
</VirtualHost>

¤³¤ì¤Ç¡¢ht tpd¤òºÆµ¯Æ°¤·¤Æ½àÈ÷´°Î»¤Ç¤¹¡£
¤â¤Á¤í¤ó¡¢¥ª¥ì¥ª¥ì¾ÚÌÀ½ñ¤Ê¤Î¤Ç¡¢¥Ö¥é¥¦¥¶¤ÇºÇ½é¤Ë³«¤¯¤È¤­¤Ë·Ù¹ð¤¬½Ð¤Þ¤¹¤¬¡¢
¥Æ¥¹¥È´Ä¶­¤Ê¤Î¤ÇÆä˵¤¤Ë¤·¤Þ¤»¤ó¡£



Tags: Wordpress
author : HUNDREDSOFT | - | -

¥Ù¥Í¥Ã¥»¸Ä¿Í¾ðÊóή½Ð

Åö½é¤Î¥Ë¥å¡¼¥¹¤Ë´Ø¤·¤Æ¤Ï¡¢ ¤³¤Á¤é [¥Ù¥Í¥Ã¥»¸Ä¿Í¾ðÊóή½Ð»ö·ï]¤Ë¾Ü¤·¤¯½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£
Åö½é¡Ê2014.07.09¡Ë¡¢2070Ëü·ï¤È¤µ¤ì¤¿¾ðÊóϳ¤¨¤¤¤Ï¡¢2014.09.10¤Ë¤Ï¡¢3500Ëü·ï¤Ë³ÈÂ礷¤Æ¤¤¤Þ¤¹¡£

»Ò¶¡¸þ¤±¤Î¾ðÊ󻺶ȤòÆÀ°Õ¤È¤¹¤ë´ë¶È¤Ê¤Î¤Ç¡¢¿´ÇۤϤ·¤Æ¤¤¤Þ¤·¤¿¤¬¡¢
¤È¤¦¤È¤¦¡¢Ï³±ÌÄÌÃΤ¬¥Ù¥Í¥Ã¥»¤«¤éÆϤ¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£



ÅŻҥޥ͡¼¤â¤·¤¯¤Ï¿Þ½ñ·ô500±ß¤È¤¤¤¦¡¢¤Þ¤Ã¤¿¤¯Ìò¤ËΩ¤¿¤Ê¤¤¤è¤¦¤Ê¤ªÏͤӤ、·¹þ¤ß¤ò¤»¤è¡¢
¤â¤·¤¯¤Ï¡¢¥Ù¥Í¥Ã¥»¤Î»üÁ±»ö¶È¤Ë´óÉÕ¤»¤è¡£
¤È¤¤¤¦¡¢¶Ã¤¤¤¿ÆâÍƤǤ¹¡£



»Ò¶¡¤¬¾®¤µ¤¤º¢¤Ë¡¢¡Ö¤·¤Þ¤¸¤í¤¦¡×¤Î²¿¤«¤ÇÅÐÏ¿¤·¤¿µ­²±¤Ï¤¢¤ê¤Þ¤¹¤¬¡¢
¤½¤Îº¢¤Î½»½ê¤È¤ÏÊѤï¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢¡ÖžÁ÷ÉԲġפÎ͹Êؤ¬ÆϤ¯¤³¤È¤ÏÍý²ò¤Ë¶ì¤·¤ß¤Þ¤¹¡£
²¿¤é¤«¤ÎÊýË¡¤ÇÄÉÀ×Ä´ºº¤¬¤Ê¤µ¤ì¤¿¤Î¤Ç¤·¤ç¤¦¤«¡£

Ê̤Ρֲ¿¤«¡×¤Ç¾ðÊóϳ±Ì¤·¤¿¤Î¤Ê¤é¡¢¤½¤Î¡Ö²¿¤«¡×¤ò¶µ¤¨¤Æ¤â¤é¤¤¤¿¤¤¤â¤Î¤Ç¤¹¡£
£²Å٤ȻȤ¤¤Þ¤»¤ó¤Î¤Ç¡£

¤Þ¤º¤Ï¡¢Ï³±Ì¤·¤Æ¤·¤Þ¤Ã¤¿¡Ê¥Ù¥Í¥Ã¥»¤¬»ý¤Ä¡Ë¾ðÊó¤òÁ´¤ÆÇË´þ¤·¤Æ¤Û¤·¤¤¡£

¥³¡¼¥ë¥»¥ó¥¿¡¼¤ËÅÅÏ乤ë¤È¡¢¡Ö¾ðÊ󤬸«¤ì¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤ë¡×¤È¸À¤¦¡£
¤ª¤½¤é¤¯¡Ö¤³¤É¤â¤Á¤ã¤ì¤ó¤¸¡×Âà²ñ»þ¤Ë¡¢¥Ç¡¼¥¿ºï½ü¤ò°ÍÍꤷ¤¿¤Î¤Ç¤Ï¤Ê¤¤¤«¡¢¤È¤â¡£
Âà²ñ¤Ï10ǯ°Ê¾åÁ°¤Î¤³¤È¤Ê¤Î¤Ç³Ð¤¨¤Æ¤¤¤Ê¤¤¤·¡¢¤Ê¤¼¡¢¤³¤Î¤è¤¦¤Ê¼ê»æ¤¬ÆϤ¯¤Î¤«Íý²ò¤Ç¤­¤Ê¤¤¡£
¤¹¤ë¤È¡¢°ìÉô¤Î¥Ç¡¼¥¿¤Ï¸«¤ì¤ë¤È¤â¸À¤Ã¤Æ¤¤¤¿¡¢¤â¤¦²¿¤¬²¿¤À¤«¡£

ÊÖ¿®¤Ï¤¬¤­¤Ë¤Ï¡¢¾ðÊóºï½ü°ÍÍê¤Î¥Á¥§¥Ã¥¯Í󤬤¢¤ë¤¬¡¢¤Ï¤¿¤·¤Æ¤É¤³¤Þ¤Ç¾Ãµî¤·¤Æ¤¯¤ì¤ë¤Î¤À¤í¤¦¡£

°ìÅÙϳ±Ì¤·¤¿¥Ç¡¼¥¿¤¬¤³¤ÎÀ¤¤«¤é¾Ã¤¨¤ë¤³¤È¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤¬¡¢
¾ðÊ󸵥½¡¼¥¹¤È¤Î¥Þ¥Ã¥Á¤¬¼è¤ì¤Ê¤¯¤Ê¤ì¤Ð¡¢¥Ç¡¼¥¿¤Î¿®ÍÑÀ­¤ÏÄ㤯¤Ê¤ê¡¢¤¤¤Ä¤«¤Ï¾Ã¤¨¤Æ¤¤¤¯¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¥¯¥ì¡¼¥àÂбþ¤È¤·¤ÆɬÍפʤé¤Ð¡¢¥Ù¥Í¥Ã¥»¤È´Ø¤ï¤é¤Ê¤¤Âè3¼Ôµ¡´Ø¤Ë°Ü¤·¤Æ夭¤¿¤¤¡£
¾¯¤Ê¤¯¤È¤â¡¢¥Ù¥Í¥Ã¥»¤Î´§¤¬ÉÕ¤¤¤¿µ¡´Ø¤Ï¡¢´ªÊÛ¤·¤Æ¤Û¤·¤¤¡£

¥¯¥ì¥¸¥Ã¥È¤ÎÆâÍƤÏϳ¤ì¤Æ¤¤¤Ê¤¤¤È½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢
º£¤Î¾õ¶·¤Ç¤É¤³¤Þ¤Ç¿®ÍѤ·¤Æ¤è¤¤¤Î¤Ç¤·¤ç¤¦¡£(ݵ


author : HUNDREDSOFT | - | -