composer

ca-bundle

composer

Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.

AI 简介

composer/ca-bundle 是一个小型的 PHP 库,用于查找系统 CA 证书包路径,并在必要时提供 Mozilla CA 证书包作为备用。其核心功能包括获取系统或内置的 CA 证书路径、验证 CA 文件的有效性以及检查 openssl_x509_parse 函数的安全使用条件。该库适用于需要安全地处理 HTTPS 请求的场景,如使用 cURL、PHP 流或 Guzzle 发送请求时确保 SSL/TLS 通信的安全性。通过提供可靠的 CA 证书路径,它简化了开发人员在配置 SSL 验证时的工作。

PHP
MIT License
3k
Stars
40
Forks
12
Watchers
1
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分56.84
默认分支main