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.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Generating certificate (${1})..."
|
||||
openssl CA -config ${rootdir}/intermediate/openssl.cnf -days 3650 -extensions server_cert -notext -md sha512 -in ${rootdir}/csr/${1}.csr -out ${rootdir}/crt/${1}.crt > /dev/null 2>&1
|
||||
chmod 444 ${rootdir}/${1}/crt/${1}.crt
|
||||
echo "Generating certificate (${1}) (server certificate)..."
|
||||
openssl ca -config ${rootdir}/intermediate/openssl.cnf -batch -days 3650 -extensions server_cert -notext -md sha512 -in ${rootdir}/csr/${1}.csr -out ${rootdir}/crt/${1}.crt > /dev/null 2>&1
|
||||
chmod 444 ${rootdir}/crt/${1}.crt
|
||||
|
||||
Reference in New Issue
Block a user