pverdu/x509-certificate-validator
Composer 安装命令:
composer require pverdu/x509-certificate-validator
包简介
A X509 Certificate validator
README 文档
README
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
composer require pverdu/x509-certificate-validator`
The service provider should be autodiscovered, if not you can add it to your container using:
// ... 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.
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:
php artisan vendor:publish --provider=PVerdu\\x509CertificateValidator\\x509CertificateValidatorServiceProvider
统计信息
- 总下载量: 368
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-09