zero-to-prod/ssl-cert-validator

Fetch, validate, and verify SSL certificates.

v71.0.2 2024-10-18 14:00 UTC

This package is auto-updated.

Last update: 2024-10-18 14:00:48 UTC


README

Repo GitHub Actions Workflow Status Packagist Downloads Packagist Version GitHub repo size License

Fetch, validate, and verify SSL certificates.

Installation

Install the package via Composer:

composer require zerotoprod/ssl-cert-validator

Usage

use Zerotoprod\SslCertValidator\SslCertificate;

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