This commit is contained in:
Vasco
2026-04-22 11:25:36 +01:00
parent 1d466a368f
commit cb8ad725ce
2 changed files with 4 additions and 3 deletions

View File

@@ -4,8 +4,7 @@ cert_ca="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=CoimbraVPN"
cert_vpn="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=gateway" cert_vpn="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=gateway"
cert_user="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=warrior" cert_user="/C=PT/ST=Coimbra/L=Coimbra/O=UC/CN=warrior"
echo 1000 > serial [[ -e "serial" ]] || echo 1000 > serial
[[ -e "ca.key" ]] || openssl genrsa -out "ca.key" 2048 [[ -e "ca.key" ]] || openssl genrsa -out "ca.key" 2048
[[ -e "ca.crt" ]] || openssl req -x509 -nodes -days 365 -key "ca.key" -out "ca.crt" -subj "$cert_ca" [[ -e "ca.crt" ]] || openssl req -x509 -nodes -days 365 -key "ca.key" -out "ca.crt" -subj "$cert_ca"
[[ -e "vpn.key" ]] || openssl genrsa -out "vpn.key" 2048 [[ -e "vpn.key" ]] || openssl genrsa -out "vpn.key" 2048

View File

@@ -27,4 +27,6 @@ if [ "$depth" -eq 0 ]; then
fi fi
fi fi
echo "ERROR: depth > 0" >> /etc/openvpn/server/ocsp.log
exit 0 exit 0