Configures a custom CA (Certificates Authority) certificates file.
Most applications should use the system's root certificates and should avoid setting this option unnecessarily. A common exception to this recommendation are containerized applications. These often deploy without system's root certificates and need to explicitly configure a root of trust.
The value of this option should be the name of a file in PEM format. Consult your security team and/or system administrator for the contents of this file. Be aware of the security implications of adding new CA certificates to this file. Only use trustworthy sources for the CA certificates.
For REST-based libraries this configures the CAINFO option in libcurl. These are used for all credentials that require authentication, including the default credentials.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This webpage details different versions of the `CARootsFilePathOption`, starting from the latest release candidate, version 2.37.0-rc, down to version 2.10.1."],["The `CARootsFilePathOption` allows configuration of a custom Certificate Authority (CA) certificates file for use with the application."],["Setting the `CARootsFilePathOption` is generally unnecessary for most applications using the system's root certificates, but is particularly useful for containerized applications lacking system root certificates."],["For REST-based libraries, this option configures the `CAINFO` option in libcurl, while for gRPC-based libraries, it configures the `pem_roots_cert` parameter in `grpc::SslCredentialsOptions`."],["Using this option with `MakeGoogleDefaultCredentials()` or `MakeServiceAccountCredentials()` in gRPC-based libraries is not directly supported, instead users should utilize the `GRPC_DEFAULT_SSL_ROOTS_FILE_PATH` environment variable."]]],[]]