X509
A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.
Install / Use
/learn @sop/X509README
X.509
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.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

