sop / x509
A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.
Installs: 524 644
Dependents: 9
Suggesters: 0
Security: 0
Stars: 39
Watchers: 3
Forks: 14
Open Issues: 4
Requires
- php: >=7.2
- ext-gmp: *
- sop/asn1: ^4.0.0
- sop/crypto-bridge: ^0.3.1
- sop/crypto-encoding: ^0.3.0
- sop/crypto-types: ^0.3.0
- sop/x501: ^0.6.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.49
- phpunit/phpunit: ^9
README
A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.
Introduction
This library provides a pure PHP implementation of X.509 certificates. The class hierarchy adapts to the ASN.1 types, which makes it easy to use corresponding RFC's as a reference documentation.
Features
- X.509 certificates (RFC 5280)
- Certificate decoding and encoding
- Certificate signing
- Certification requests (PKCS #10)
- CSR decoding and encoding
- Certification path
- Path building
- Path validation
- Attribute certificates (RFC 5755)
- AC decoding and encoding
- AC signing
Requirements
- PHP >=7.2
- gmp
- sop/asn1
- sop/x501
- sop/crypto-types
- sop/crypto-bridge
- sop/crypto-encoding
Installation
This library is available on Packagist.
composer require sop/x509
Code examples
Examples are located in
/examples
directory.
License
This project is licensed under the MIT License.