43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
|
|
# SSL Create script
|
||
|
|
|
||
|
|
Create new SSL certificates for signing
|
||
|
|
|
||
|
|
## Options
|
||
|
|
|
||
|
|
```sh
|
||
|
|
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 ;
|
||
|
|
|
||
|
|
```txt
|
||
|
|
Country|State|Location|Organization|Organizational Unit|domain name|password|confirm email
|
||
|
|
```
|
||
|
|
|
||
|
|
### Sample
|
||
|
|
|
||
|
|
```txt
|
||
|
|
jp|Toyko|Minato-ku|Foo Bar|IT Department|foobar.org|1234567|hostmaster@foobar.org
|
||
|
|
```
|
||
|
|
|
||
|
|
```sh
|
||
|
|
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/`
|