PHPackages                             skriptfabrik/openssl - 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. skriptfabrik/openssl

ActiveLibrary[Security](/categories/security)

skriptfabrik/openssl
====================

A PHP package to manage key files with OpenSSL

09.0kPHPCI failing

Since Jun 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/skriptfabrik/php-openssl)[ Packagist](https://packagist.org/packages/skriptfabrik/openssl)[ RSS](/packages/skriptfabrik-openssl/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

A PHP package to manage key files with OpenSSL
==============================================

[](#a-php-package-to-manage-key-files-with-openssl)

[![Build Status](https://camo.githubusercontent.com/d9db1084ea87a1b21e3e1cd8d1dd48fadd841ddb8723fb852e7d628dcec740cd/68747470733a2f2f7472617669732d63692e636f6d2f736b7269707466616272696b2f7068702d6f70656e73736c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/skriptfabrik/php-openssl)[![Coverage Status](https://camo.githubusercontent.com/8133b65300b4b57ef918affcb65be5f5b4f89d84ed09ae2e7d2e02a8aa47d011/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736b7269707466616272696b2f7068702d6f70656e73736c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/skriptfabrik/php-openssl?branch=master)

Usage
-----

[](#usage)

Run `$ vendor/bin/openssl help []` to display the usage details for a specific command.

### Generate a private key

[](#generate-a-private-key)

The default private key file with the name `private.pem` will be generated to the current working directory. You can specify the `--type`, `--bits` and `--passphrase` as an option. If you want to keep an existing private key, append the `--no-override` option to the command.

```
$ vendor/bin/openssl openssl:generate-private-key [options] [--] []
```

### Export the public key

[](#export-the-public-key)

The default public key file with the name `public.pem` will be exported to the current working directory. The private key is expected to be named `private.pem`. It should also be stored in the working directory per default. Use the `--passphrase` option when the private key was encrypted by a passphrase. If you want to keep an existing public key, append the `--no-override` option to the command.

```
$ vendor/bin/openssl openssl:export-public-key [options] [--] [ []]
```

Development
-----------

[](#development)

### Requirements

[](#requirements)

The development of this project is powered by [Docker](https://www.docker.com/), Docker Compose and [GNU Make](http://www.gnu.org/software/make). Please have a look at the [Makefile](Makefile) for exact commands.

### Install dependencies and development tools

[](#install-dependencies-and-development-tools)

This will install all Composer dependencies and development tools.

```
$ make install
```

### Analyse code

[](#analyse-code)

The code analysis is being performed with [PHPStan](https://github.com/phpstan/phpstan).

```
$ make analysis
```

### Check code style

[](#check-code-style)

The code style is being checked with [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

```
$ make style-check
```

#### Fix code style

[](#fix-code-style)

Some minor code style issues can also be fixed with [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

```
$ make style-fix
```

### Run Tests

[](#run-tests)

[PHPUnit](https://github.com/sebastianbergmann/phpunit) is being used to run the test suite.

```
$ make tests
```

#### Run Tests With Coverage

[](#run-tests-with-coverage)

To display and export the coverage report add `-with-coverage`.

```
$ make tests-with-coverage
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 64.9% 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.

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/18685557?v=4)[Marco Spengler](/maintainers/MaSpeng)[@MaSpeng](https://github.com/MaSpeng)

![](https://www.gravatar.com/avatar/8856d4139fd7a0f97990a243ba922724ff0f93490d5cf3442e470ef0595f9e7e?d=identicon)[FrankGiesecke](/maintainers/FrankGiesecke)

---

Top Contributors

[![schroedan](https://avatars.githubusercontent.com/u/4107232?v=4)](https://github.com/schroedan "schroedan (24 commits)")[![MaSpeng](https://avatars.githubusercontent.com/u/18685557?v=4)](https://github.com/MaSpeng "MaSpeng (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

### Embed Badge

![Health badge](/badges/skriptfabrik-openssl/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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