Extract _validateSslCertificate method