Fix ssl security check in autotls