Contributions are welcome!
The script helps to generate self-signed UCC certificate based on openssl.modified.cnf
.
The file openssl.modified.cnf
is mostly being used for generation of certificate requests.
bash generate-crt.sh -d 365
- will generate server.key
and server.crt
.
In order to generate certificate based on openssl.modified.cnf
for your sites you should do the following:
- Open the file
openssl.modified.cnf
. - Find section
[alt_names]
. - Add/Change/Remove
DNS.1
,DNS.2
in the formatDNS.N = example2.com
whereN
is number. - Save file.
- Run script
generate-crt.sh
. - Follow instructions.
The script is very simple and straightforward. Currently, the following commands are supported:
-d
or --days
– sets the number of days how long the certificate will be valid.
-c
or --config
- sets the config name/path for openssl.modified.cnf
.