PHPackages                             ukrbublik/openssl\_x509\_gencrl - 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. ukrbublik/openssl\_x509\_gencrl

Abandoned → [ukrbublik/openssl\_x509\_crl](/?search=ukrbublik%2Fopenssl_x509_crl)Library

ukrbublik/openssl\_x509\_gencrl
===============================

Missing OpenSSL function on PHP to create CRL (certificate revocation list) for CA

1.3(6y ago)1879[1 PRs](https://github.com/ukrbublik/openssl_x509_crl/pulls)MITPHPPHP &gt;=5.3.0

Since May 22Pushed 6y ago3 watchersCompare

[ Source](https://github.com/ukrbublik/openssl_x509_crl)[ Packagist](https://packagist.org/packages/ukrbublik/openssl_x509_gencrl)[ Docs](https://github.com/ukrbublik/openssl_x509_crl)[ RSS](/packages/ukrbublik-openssl-x509-gencrl/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (3)Used By (0)

openssl\_x509\_crl()
====================

[](#openssl_x509_crl)

### Description:

[](#description)

If you want to create own Certification authority (CA) on pure PHP with OpenSSL extension, you need a function to create certificate revocation list (CRL) which is missing in OpenSSL extension ([request #40046](https://bugs.php.net/bug.php?id=40046)).

This lib implements such function - **openssl\_x509\_crl()**

### Usage example:

[](#usage-example)

```
use Ukrbublik\openssl_x509_crl\X509;
use Ukrbublik\openssl_x509_crl\X509_CERT;
use Ukrbublik\openssl_x509_crl\X509_CRL;

$ci = array(
	'no' => 1,
	'version' => 2,
	'days' => 30,
	'alg' => OPENSSL_ALGO_SHA1,
	'revoked' => array(
		array(
			'serial' => '101',
			'rev_date' => time(),
			'reason' => X509::getRevokeReasonCodeByName("cessationOfOperation"),
			'compr_date' => strtotime("-1 day"),
			'hold_instr' => null,
		)
	)
);
$ca_pkey = openssl_pkey_get_private(file_get_contents('ca_key.key'));
$ca_cert = X509::pem2der(file_get_contents('ca_cert.cer'));
$crl_data = openssl_x509_crl($ci, $ca_pkey, $ca_cert);
//$crl_data contains CRL in DER format
```

###  Health Score

29

↑

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~917 days

Total

2

Last Release

2361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fcef22e994383405748a3726df0184e3f4744fd02ab85185b8bd765ac79745a7?d=identicon)[ukrbublik](/maintainers/ukrbublik)

---

Top Contributors

[![ukrbublik](https://avatars.githubusercontent.com/u/3238637?v=4)](https://github.com/ukrbublik "ukrbublik (17 commits)")[![jim-p](https://avatars.githubusercontent.com/u/174434?v=4)](https://github.com/jim-p "jim-p (1 commits)")[![rbgarga](https://avatars.githubusercontent.com/u/149872?v=4)](https://github.com/rbgarga "rbgarga (1 commits)")

---

Tags

asn1certificate-authoritycertificate-revocation-listscertificatescryptographyopensslopenssl-extensionphpx509phpcryptographyx509asn1certificateopensslcertificatescertificate authorityopenssl-extensioncertificate-revocation-lists

### Embed Badge

![Health badge](/badges/ukrbublik-openssl-x509-gencrl/health.svg)

```
[![Health](https://phpackages.com/badges/ukrbublik-openssl-x509-gencrl/health.svg)](https://phpackages.com/packages/ukrbublik-openssl-x509-gencrl)
```

###  Alternatives

[ukrbublik/openssl_x509_crl

Missing OpenSSL function on PHP to create CRL (certificate revocation list) for CA

182.1k](/packages/ukrbublik-openssl-x509-crl)[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[kelunik/certificate

Access certificate details and transform between different formats.

10938.3M8](/packages/kelunik-certificate)[spomky-labs/pki-framework

A PHP framework for managing Public Key Infrastructures. It comprises X.509 public key certificates, attribute certificates, certification requests and certification path validation.

2725.9M11](/packages/spomky-labs-pki-framework)[acmephp/acmephp

Let's Encrypt client written in PHP

649155.1k](/packages/acmephp-acmephp)[acmephp/core

Raw implementation of the ACME protocol in PHP

38973.7k7](/packages/acmephp-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
