定制 polycademy/sslcreator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

polycademy/sslcreator

Composer 安装命令:

composer require polycademy/sslcreator

包简介

Create Multi-Domain Self-Signed SSL Certificates

关键字:

README 文档

README

A tool for creating self signed multi-domain (and wildcard) SSL certificates for the purposes of development! For production you should use certificates verified by a third party.

Introduction

Normally you would have remember and do this of all on the command line:

openssl genrsa -out multidomain.key 2048
openssl req -new -key multidomain.key -out multidomain.csr
echo "subjectAltName=DNS:first.com,DNS:*.second.com,DNS:another.io,IP:10.0.0.0" > domain_extensions
openssl x509 -req -in multidomain.csr -signkey multidomain.key -extfile domain_extensions -out multidomain.crt -days 10000
rm multidomain.csr domain_extensions

That's difficult. So instead we use PHP, and we don't even need openssl. It works on Windows computers too!

Installation

composer require polycademy/sslcreator:*

Usage

Doing this:

sslcreator primary.com secondary.com *.wildcard.com -f multidomain -b 2048

Results in this:

Registering these domains:
    - primary.com
    - secondary.com
    - *.wildcard.com
Generating Key Pair
Generating Certificate Signing Request
Signing the Certificate
Saving Key and Certificate at Current Working Directory
Saved as:
    - ./multidomain.key
    - ./multidomain.crt

Need a lot of domains? Just point to a JSON file.

sslcreator -j ./domains.json -f multidomain -b 1024

The JSON file needs to be:

[
    "primarydomain.com",
    "anotherdomain.com",
    "*.wildcard.com"
]

Help

sslcreator -h

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固