Files
ssl-create/ReadMe.md
2024-11-05 10:16:34 +09:00

1.1 KiB

SSL Create script

Create new SSL certificates for signing

Options

Usage: bin/create_ssl.sh -f <input file> [-o <optional output folder>] [-s] [-v [-v] ...]

-f: mandatory input file. CSV format with | separations
Format:
Country|State|Location|Organization|Organizational Unit|domain name|password
-s: switch output path from <date>/<domain> to <domain>/<date>
-o: optional output folder. If not given, then output will be written to current folder
-v: verbose output (CSR/KEY) as echo to terminal

Template file layout

The base file (CSV) for creating new certicates has the following format.

The separator is the | and not ;

Country|State|Location|Organization|Organizational Unit|domain name|password|confirm email

Sample

jp|Toyko|Minato-ku|Foo Bar|IT Department|foobar.org|1234567|hostmaster@foobar.org
bin/create_ssl.sh -f path/to/file.csv -o output/path

This will creaet a new folder with

YYYYMMDD/foobar.org/ and in ther are the SSL data stored

If the -s flag is used the folder is reveres foobar.org/YYYYMMDD/