If `validate_certs` is enable, we now validate the server SSL certificate. (cherry picked from commit 23e63c9237)
23e63c9237