the dying breath of john caveman

This commit is contained in:
Vasco
2026-04-22 15:10:25 +01:00
parent 9d6ec092f4
commit 7c6b8336ee
2 changed files with 2 additions and 1 deletions

View File

@@ -18,5 +18,5 @@ cert_apache="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=apache"
[[ -e "user.csr" ]] || openssl req -new -key user.key -out user.csr -subj "$cert_user"
[[ -e "user.crt" ]] || openssl ca -batch -in "user.csr" -cert "ca.crt" -keyfile "ca.key" -out "user.crt" -config cheese.cfg
[[ -e "apache.key" ]] || openssl genrsa -out apache.key
[[ -e "apache.csr" ]] || openssl req -new -key apache.key -out apache.csr -subj "$cert_apache"
[[ -e "apache.csr" ]] || openssl req -new -key apache.key -out apache.csr -subj "$cert_apache" -addext "subjectAltName = IP:10.60.0.1,DNS:apache"
[[ -e "apache.crt" ]] || openssl ca -batch -in "apache.csr" -cert "ca.crt" -keyfile "ca.key" -out "apache.crt" -config cheese.cfg