zero-to-prod/ssl-cert-validator

抓取、验证和验证SSL证书。

v71.0.0 2024-09-08 16:08 UTC

This package is auto-updated.

Last update: 2024-09-08 16:13:27 UTC


README

Repo Latest Version on Packagist test Downloads

抓取、验证和验证SSL证书。

安装

通过Composer安装该包

composer require zerotoprod/ssl-cert-validator

用法

use Zerotoprod\SslCertValidator\Certificate;

Certificate::fromHostName('https://example.com');
Certificate::hostIsValid('https://example.com');
Certificate::isExpired('example.com');
Certificate::isSelfSigned('example.com');
Certificate::isTrustedRoot('example.com', '/path/to/cafile.pem');