This repository has been archived on 2022-01-23. You can view files and clone it, but cannot push or open issues or pull requests.
ssladmin/gen.ca.cert.sh

7 lines
326 B
Bash
Raw Permalink Normal View History

2016-02-22 01:42:47 -05:00
#!/bin/bash
set -e
echo "Generating CA certificate..."
2016-02-22 03:29:17 -05:00
openssl req -config ${rootdir}/openssl.cnf -key ${rootdir}/key/ca.key -new -x509 -days 3650 -extensions v3_ca -subj "/CN=${ORGNAME}\(CA\)/O=${ORGNAME}/C=${ORGCNTRY}/ST=${ORGSTATE}/L=${ORGCITY}" -out ${rootdir}/crt/ca.crt > /dev/null 2>&1
2016-02-22 01:42:47 -05:00
chmod 444 ${rootdir}/crt/ca.crt