.. _security-curloptions: .. _safe-curl-options: Safe Curl Options +++++++++++++++++ It is advised to always use ``CURLOPT_SSL_VERIFYPEER`` and ``CURLOPT_SSL_VERIFYHOST`` when requesting a SSL `connection `_. With those tests, the certificate is verified, and if it isn't valid, the `connection `_ fails : this is a safe behavior. .. code-block:: php See also `Don’t turn off CURLOPT_SSL_VERIFYPEER, fix your PHP configuration `_, `Certainty: Automated CACert.pem Management for PHP Software `_ and `Server-Side HTTPS Requests `_. Connex PHP features ------------------- + `curl `_ + `ssl `_ + `https `_ Suggestions ___________ * Always use CURLOPT_SSL_VERIFYPEER and HTTPS for communication with other servers Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Security/CurlOptions | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Security ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-openconf-security-curloptions` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+