function default_ca_bundle
Returns the default cacert bundle for the current system.
First, the openssl.cafile and curl.cainfo php.ini settings are checked. If those settings are not configured, then the common locations for bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X and Windows are checked. If any of these file locations are found on disk, they will be utilized.
Note: the result of this function is cached for subsequent calls.
Throws
\RuntimeException if no bundle can be found.
Deprecated
default_ca_bundle will be removed in guzzlehttp/guzzle:8.0. This function is not needed in PHP 5.6+.
File
-
vendor/
guzzlehttp/ guzzle/ src/ functions.php, line 89
Namespace
GuzzleHttpCode
function default_ca_bundle() : string {
return Utils::defaultCaBundle();
}