PHPackages                             kduma/cert-chain - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. kduma/cert-chain

ActiveLibrary[Security](/categories/security)

kduma/cert-chain
================

PHP implementation for certificate chain of trust with validation and parsing

00PHPCI passing

Since Sep 13Pushed 9mo agoCompare

[ Source](https://github.com/kduma-OSS/PHP-cert-chain)[ Packagist](https://packagist.org/packages/kduma/cert-chain)[ RSS](/packages/kduma-cert-chain/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Certificate Chain of Trust
==============================

[](#php-certificate-chain-of-trust)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e4f73f35054721736c206377f85126f971aa2fa4ea983afd67878a9fdb3602e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b64756d612f636572742d636861696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/cert-chain)[![Tests](https://camo.githubusercontent.com/e8896e3dfa64dcd81d663988ed74c114ab211694b1519cf12c0639c755ed0597/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b64756d612d4f53532f5048502d636572742d636861696e2f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kduma-OSS/PHP-cert-chain/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7cd1e8268bcaac16f3c01e5ddd0bbaece5a7f5b36e4f718a3e2a5a409ef36fd9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b64756d612f636572742d636861696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/cert-chain)

A modern, secure PHP library for creating and managing certificate authorities, digital signatures, and trust relationships using **Ed25519 cryptography**. Built for PHP 8.4+ with strict typing, immutable objects, and comprehensive validation.

Check full documentation: [opensource.duma.sh/libraries/php/cert-chain](https://opensource.duma.sh/libraries/php/cert-chain)

✨ Key Features
--------------

[](#-key-features)

- 🔐 **Ed25519 Cryptography**: Fast, secure elliptic curve signatures via libsodium
- 📜 **Flexible Certificate System**: Generic end-entity flags for maximum reusability
- 🏗️ **Hierarchical Trust**: Root CAs, intermediate CAs, and end-entity certificates
- 🔍 **Strict Validation**: Comprehensive security checks and flag inheritance validation
- 💾 **Binary Format**: Efficient serialization for storage and transmission
- 🛡️ **Security-First**: Unique KeyId validation, proper certificate chain verification
- 🚀 **Modern PHP**: Built for PHP 8.4+ with readonly classes and strict typing

📦 Installation
--------------

[](#-installation)

Install with [Composer](https://getcomposer.org/):

```
composer require kduma/cert-chain
```

**Requirements:**

- PHP 8.4+
- Extensions: `ext-sodium`, `ext-hash`, `ext-mbstring`

🚀 Quick Start
-------------

[](#-quick-start)

### Create a Root Certificate Authority

[](#create-a-root-certificate-authority)

```
