Added the option to turn on/off the CN check in SSL connection.
Merge branch 'check_cn'