zero-to-prod/ssl-cert-validator

Fetch, validate, and verify SSL certificates.

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

Fetch, validate, and verify SSL certificates.

Installation

Install the package via Composer:

composer require zerotoprod/ssl-cert-validator

Usage

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');