Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. functions.php

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

GuzzleHttp

Code

function default_ca_bundle() : string {
    return Utils::defaultCaBundle();
}
RSS feed
Powered by Drupal