x509-certificate-validator

所属分类:CA认证
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2020-01-09 13:46:45
上 传 者sh-1993
说明:  X509证书验证器,
(A X509 certificate validator,)

文件列表:
LICENSE (1083, 2020-01-09)
composer.json (1056, 2020-01-09)
phpunit.xml (673, 2020-01-09)
src/ (0, 2020-01-09)
src/Exception/ (0, 2020-01-09)
src/Exception/CertificateException.php (975, 2020-01-09)
src/Helper/ (0, 2020-01-09)
src/Helper/X509CertificateHelper.php (3691, 2020-01-09)
src/Middleware/ (0, 2020-01-09)
src/Middleware/CertificateValidatorMiddleware.php (1722, 2020-01-09)
src/Rule/ (0, 2020-01-09)
src/Rule/NotRevokedRule.php (1093, 2020-01-09)
src/Rule/ValidCertificateRule.php (671, 2020-01-09)
src/Rule/ValidHierarchyRule.php (2282, 2020-01-09)
src/Rule/ValidatorRule.php (269, 2020-01-09)
src/Transformer/ (0, 2020-01-09)
src/Transformer/CertificateTransformer.php (647, 2020-01-09)
src/Validator/ (0, 2020-01-09)
src/Validator/CertificateValidator.php (649, 2020-01-09)
src/X509Certificate.php (2354, 2020-01-09)
src/config/ (0, 2020-01-09)
src/config/x509-certificate-validator.php (976, 2020-01-09)
src/x509CertificateValidatorServiceProvider.php (1513, 2020-01-09)
tests/ (0, 2020-01-09)
tests/CertificateTransformerCest.php (493, 2020-01-09)
tests/Rule/ (0, 2020-01-09)
tests/Rule/NotRevokedRuleCest.php (3347, 2020-01-09)
tests/Rule/ValidCertificateRuleCest.php (1043, 2020-01-09)
tests/Rule/ValidHierarchyRuleCest.php (759, 2020-01-09)
tests/TestBase.php (3372, 2020-01-09)
tests/X509CertificateCest.php (1424, 2020-01-09)
tests/X509CertificateHelperCest.php (2713, 2020-01-09)
tests/data/ (0, 2020-01-09)
tests/data/cacerts/ (0, 2020-01-09)
tests/data/cacerts/PrivateRootCA-G1.cer (1416, 2020-01-09)
tests/data/cacerts/TRIALRootCA.cer (1482, 2020-01-09)
tests/data/cacerts/TestingCertificate.pem (1333, 2020-01-09)
tests/data/certificates/ (0, 2020-01-09)
... ...

# X.509 Certificate Validator ### Features - CRL (Certificate Revocation List) validation - Expiration validation - Signed by a Trusted CA validation (with self-signed support) ## Requirements - PHP >=7.2 - Laravel >=6 ## Installation ```bash composer require pverdu/x509-certificate-validator` ``` The service provider should be autodiscovered, if not you can add it to your container using: ```php // ... PVerdu\x509CertificateValidator\x509CertificateValidatorServiceProvider::class // ... ``` ## Configuration Make sure your webserver sends the client certificate to your application either via the headers or the global `$_SERVER` variable. - For NGINX (http://nginx.org/en/docs/http/ngx_http_ssl_module.html#var_ssl_client_escaped_cert) Add the `PVerdu\x509CertificateValidator\Middleware\CertificateValidatorMiddleware` to any routes you want the certificate to be validated on per request. ### Publish configuration If you want to change the configuration, for example to change the trusted certificate store paths, you must publish the configuration using the command below: ```bash php artisan vendor:publish --provider=PVerdu\\x509CertificateValidator\\x509CertificateValidatorServiceProvider ```

近期下载者

相关文件


收藏者