Commit 4bbedd48 authored by Raymond Kristiansen's avatar Raymond Kristiansen
Browse files

Use passfile to generate server cert

parent 8465f797
#/bin/bash
if [ ! -f "./passfile" ]; then
echo "Please create a file called ./passfile with a secure password"
exit 1
fi
host=$1
cnf="cnf/${host}.cnf"
......@@ -18,4 +23,5 @@ openssl req -config ${cnf} -key intermediate/private/${host}.key.pem -new -sha25
openssl ca -config intermediate/openssl.cnf -extensions v3_req \
-days 375 -notext -md sha256 -in intermediate/csr/${host}.csr.pem \
-passin file:passfile \
-out intermediate/certs/${host}.cert.pem
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment