PHPackages                             8ctopus/self-sign - 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. 8ctopus/self-sign

ActiveProject

8ctopus/self-sign
=================

command line tool to create self-signed SSL certificates

0.1.8(2y ago)010MITPHP

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/8ctopus/self-sign)[ Packagist](https://packagist.org/packages/8ctopus/self-sign)[ Docs](https://github.com/8ctopus/self-sign)[ RSS](/packages/8ctopus-self-sign/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (9)Used By (0)

selfsign
========

[](#selfsign)

[![license](https://camo.githubusercontent.com/9260a767a2cb90166e1f3c999d985b5ef3954791ad754d3374ee148018b2a841/68747470733a2f2f706f7365722e707567782e6f72672f3863746f7075732f73656c662d7369676e2f6c6963656e7365)](https://packagist.org/packages/8ctopus/self-sign)[![lines of code](https://raw.githubusercontent.com/8ctopus/self-sign/image-data/lines.svg)](https://raw.githubusercontent.com/8ctopus/self-sign/image-data/lines.svg)

`selfsign` is a command line tool to create self-signed SSL certificates, mainly for local testing. It is notably used in my other project [apache php-fpm alpine](https://github.com/8ctopus/apache-php-fpm-alpine).

how to install
--------------

[](#how-to-install)

You have the choice between:

- composer install `composer require 8ctopus/self-sign`
- download the phar
- or build it yourself

```
# download selfsign
curl -LO https://github.com/8ctopus/self-sign/releases/download/0.1.8/selfsign.phar

# check hash against the one published under releases
sha256sum selfsign.phar

# make phar executable
chmod +x selfsign.phar

# rename phar (from here on optional)
mv selfsign.phar selfsign

# move phar to /usr/local/bin/
mv selfsign /usr/local/bin/
```

how to use
----------

[](#how-to-use)

### help

[](#help)

```
selfsign --help

```

### generate certificate authority

[](#generate-certificate-authority)

```
selfsign authority destination-dir

[INFO] generate certificate authority private key...
[INFO] generate certificate authority certificate...
[INFO] success!

```

### generate certificate

[](#generate-certificate)

```
selfsign certificate destination-dir test.com,www.test.com,api.test.com authority-dir

[INFO] generate self-signed SSL certificate for test.com...
[INFO] generate domain private key...
[INFO] create certificate signing request...
[INFO] create certificate config file...
[INFO] create signed certificate by certificate authority...
[INFO] success!

```

for development
---------------

[](#for-development)

### build phar

[](#build-phar)

```
./build.sh

```

### debug code

[](#debug-code)

```
php src/EntryPoint.php authority demo
php src/EntryPoint.php certificate demo test.com,www.test.com,api.test.com demo

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

8

Last Release

1022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dafd5f7ef8134a5c9b231686c5da3d6416db09139b45aac0b26952178dffb8a?d=identicon)[8ctopus](/maintainers/8ctopus)

---

Top Contributors

[![8ctopus](https://avatars.githubusercontent.com/u/13252042?v=4)](https://github.com/8ctopus "8ctopus (60 commits)")

---

Tags

opensslself-signed-certificateopensslcertificatesself-signed

### Embed Badge

![Health badge](/badges/8ctopus-self-sign/health.svg)

```
[![Health](https://phpackages.com/badges/8ctopus-self-sign/health.svg)](https://phpackages.com/packages/8ctopus-self-sign)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[kelunik/certificate

Access certificate details and transform between different formats.

10938.3M8](/packages/kelunik-certificate)[acmephp/acmephp

Let's Encrypt client written in PHP

649155.1k](/packages/acmephp-acmephp)[mmeyer2k/dcrypt

A petite library of encryption functionality for PHP

98727.2k1](/packages/mmeyer2k-dcrypt)[payu/apple-pay

ApplePay Token Decoder

51983.2k](/packages/payu-apple-pay)[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)
