Try setting ssl_verify_mode