zero-to-prod / ssl-cert-validator
Fetch, validate, and verify SSL certificates.
Fund package maintenance!
zero-to-prod
v71.0.2
2024-10-18 14:00 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-openssl: *
- zero-to-prod/data-model: ^71.0
- zero-to-prod/dynamic-setter: ^71.0
- zero-to-prod/stream-context: ^71.0
- zero-to-prod/stream-socket: ^71.0
- zero-to-prod/transformable: ^71.0
- zero-to-prod/url: ^71.0
Requires (Dev)
- ext-json: *
- phpunit/phpunit: ^7.0
README
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');