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.intermediate.cert.sh
brent s 125919ee3a v1! working now. should create full PKI.
TODO: add better standalone-script support (e.g. adding clients), conf support (so they all pull their variables from the same place), etc.
2016-02-22 14:49:15 -05:00

7 lines
334 B
Bash

#!/bin/bash
set -e
echo "Generating intermediate certificate..."
openssl ca -config ${rootdir}/openssl.cnf -batch -days 3650 -extensions v3_ca -notext -md sha512 -in ${rootdir}/intermediate/csr/intermediate.csr -out ${rootdir}/intermediate/crt/intermediate.crt > /dev/null 2>&1
chmod 444 ${rootdir}/intermediate/crt/intermediate.crt