hrobertson/x509-verify
Composer 安装命令:
composer require hrobertson/x509-verify
包简介
Check if one X.509 certificate is the signer of another
README 文档
README
Determine if an X.509 certificate is the signer of another.
This is based on and uses parts of Mike Green's script from https://web.archive.org/web/20181211085459/http://badpenguins.com/source/misc/isCertSigner.php?viewSource
Requirements
PHP 7.0 or PHP 5.6
Installation
The preferred way to install this library is via Composer:
$ composer require hrobertson/x509-verify
Usage
use HRobertson\X509Verify\SslCertificate; $leafCertificate = new SslCertificate(file_get_contents('example.com.pem')); $issuerCertificate = new SslCertificate(file_get_contents('intermediate.pem')); $leafCertificate->isSignedBy($issuerCertificate); // returns true if $leafCertificate is signed by $issuerCertificate
Licence
As stipulated by Mike Green, the author of the original script, this software is licenced under the GPLv2. Please see License File for more information.
统计信息
- 总下载量: 2.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2018-03-16