2017 © Pedro Peláez
 

library sslcreator

Create Multi-Domain Self-Signed SSL Certificates

image

polycademy/sslcreator

Create Multi-Domain Self-Signed SSL Certificates

  • Friday, September 22, 2017
  • by CMCDragonkai
  • Repository
  • 2 Watchers
  • 13 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SSL Creator

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., (*1)

Introduction

Normally you would have remember and do this of all on the command line:, (*2)

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!, (*3)

Installation

composer require polycademy/sslcreator:*

Usage

Doing this:, (*4)

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

Results in this:, (*5)

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., (*6)

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

The JSON file needs to be:, (*7)

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

Help

sslcreator -h

The Versions

22/09 2017

dev-master

9999999-dev https://github.com/Polycademy/SSLCreator

Create Multi-Domain Self-Signed SSL Certificates

  Sources   Download

MIT

The Requires

 

ssl

20/04 2014

1.1.0

1.1.0.0 https://github.com/Polycademy/SSLCreator

Create Multi-Domain Self-Signed SSL Certificates

  Sources   Download

MIT

The Requires

 

ssl

14/03 2014

1.0.0

1.0.0.0 https://github.com/Polycademy/SSLCreator

Create Multi-Domain Self-Signed SSL Certificates

  Sources   Download

MIT

The Requires

 

ssl