ãã®ã¨ã³ããªã¯MySQL Casual Advent Calendar 2015ã®3æ¥ç®ã§ãã
ã§ãããã§ãã
ãã£ã¨èª¿ã¹ãæãã ã¨ãopenssl 1.0.1eãããããDiffie-Hellman (DH) key length 1024bit以ä¸ãè¦æ±ããããã«ãªã£ãããªããã§ãMySQLã512bitã¨ãããããªãçãkey lengthã使ã£ã¦ãããã§opensslã«æãããæããããã
MySQL 5.7ããããã©ã«ãsslãªãã·ã§ã³ãæå¹ãªã®ã§RDSã¨ãã¿ãããªSSLæ¥ç¶åãä»ãã¦ããã¹ãã«5.7ã®ã¯ã©ã¤ã¢ã³ãã§ããã§æ¥ç¶ãããã¨ããã¨ã³ã±ãã£ã½ãã
$ mysql --help ... --ssl If set to ON, this option enforces that SSL is established before client attempts to authenticate to the server. To disable client SSL capabilities use --ssl=OFF. (Defaults to on; use --skip-ssl to disable.) ...
https://bugs.mysql.com/bug.php?id=77275 ãè¦ã㨠mysql/mysql-server/commit/866b988 ã§ç´ããçãªãã¨ãæ¸ãã¦ãããã©ãHomebrewã§å
¥ããã¤ããªã ã¨ãã¡ã£ã½ããã§ãã¨ããããDHã使ããªãcipher suite(DEFAULT
ã§ã大ä¸å¤«ã§ãã)ãæå®ãã¦åé¿ã§ããããã§ãã
$ mysql --ssl-cipher='DEFUALT' -u kamipo -h mysql-casual.rds.amazonaws.com
以ä¸ãå ¥ç¤¾ã¨ã³ããªä»¥æ¥ã²ããã¶ãã«ããã°æ¸ããð