CurlSslConfig
in package
Configures TLS certificate verification for cURL handles.
Table of Contents
Methods
- apply() : void
- Enables peer verification and points cURL at a valid CA bundle.
Methods
apply()
Enables peer verification and points cURL at a valid CA bundle.
public
static apply(CurlHandle $ch) : void
Uses the CA bundle detected by composer/ca-bundle (system store or the bundled Mozilla CA set as a fallback), so verification works reliably across OSes and PHP builds that ship without a configured CA file.
Parameters
- $ch : CurlHandle
-
cURL handle to configure.