PHPackages                             jhasheng/laravel-oh - 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. jhasheng/laravel-oh

ActiveLibrary[Security](/categories/security)

jhasheng/laravel-oh
===================

v0.0.1(8y ago)08PHPPHP &gt;=7.0

Since Sep 14Pushed 8y agoCompare

[ Source](https://github.com/jhasheng/laravel-oh)[ Packagist](https://packagist.org/packages/jhasheng/laravel-oh)[ RSS](/packages/jhasheng-laravel-oh/feed)WikiDiscussions master Synced 4w ago

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

Laravel Openssl Helper
======================

[](#laravel-openssl-helper)

> 基于 laravel 的证书生成辅助工具

功能
--

[](#功能)

- 生成 CA 根证书
- 生成多级 CA 证书
- 生成 Web 服务器证书

环境要求
----

[](#环境要求)

- PHP7
- openssl 扩展
- Laravel 5.\*

安装
--

[](#安装)

```
# 安装依赖
composer reqiure jhasheng/laravel-oh

# 添加 SP 到 config/app.php
\Purple\OpensslHelper\OpensslHelperServiceProvider::class

# 生成配置
php artisan vendor:publish
```

命令
--

[](#命令)

```
# 生成根证书
php artisan oh:ca

# 生成中间商 CA 证书
php artisan oh:ca -T intermediate

# 生成 web 服务端证书
# 生成的证书可用于 exmaple.com 及其所有的二级域名，foo.com 及基所有的二级域名，IP 地址为 192.168.1.123
php artisan oh:ca -T server -A example.com -D *.example.com -D *.foo.com -D foo.com -I 192.168.1.123
```

参数说明
----

[](#参数说明)

```
-U, --organizationUnitName[=ORGANIZATIONUNITNAME]  组织单位名称 [default: "Test"]
-C, --countrName[=COUNTRNAME]                      国家缩写 [default: "CN"]
-N, --name[=NAME]                                  CA 别名，用于存储路径 [default: "Test"]
-T, --type[=TYPE]                                  类型 [default: "ca"]
-R, --rootCA[=ROOTCA]                              根 CA 名称 [default: "Test"]
-A, --commonName[=COMMONNAME]                      通用名称，签发 web 服务器时为主域名 [default: "example.com"]
-I, --IP[=IP]                                      可选 IP (multiple values allowed)
-D, --DNS[=DNS]                                    可选 DNS (multiple values allowed)
-L, --URL[=URL]                                    可选 URL (multiple values allowed)
-O, --organizationName[=ORGANIZATIONNAME]          组织名称 [default: "Test"]
```

签发步骤
----

[](#签发步骤)

- 生成根 CA
- 生成中间商 CA （可选）
- 签发证书（可以选择根 CA 进行签发，也可以选择中间商 CA）

注意
--

[](#注意)

> 此程序产生的证书仅用于本地开发使用

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3257d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3609682?v=4)[Tomato ](/maintainers/jhasheng)[@jhasheng](https://github.com/jhasheng)

---

Top Contributors

[![jhasheng](https://avatars.githubusercontent.com/u/3609682?v=4)](https://github.com/jhasheng "jhasheng (1 commits)")

---

Tags

laravelopensslca

### Embed Badge

![Health badge](/badges/jhasheng-laravel-oh/health.svg)

```
[![Health](https://phpackages.com/badges/jhasheng-laravel-oh/health.svg)](https://phpackages.com/packages/jhasheng-laravel-oh)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k4](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

4041.8k](/packages/codewithdennis-larament)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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