Fetch, validate, and verify SSL certificates.
Install Zerotoprod\SslCertValidator
via Composer:
composer require zero-to-prod/ssl-cert-validator
This will add the package to your project’s dependencies and create an autoloader entry for it.
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');
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
git checkout -b feature-branch
).git commit -m 'Add some feature'
).git push origin feature-branch
).