Commit b9e9f50c authored by Tommy Lau's avatar Tommy Lau

Indent template file

parent b19c99eb
...@@ -29,26 +29,26 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ]; ...@@ -29,26 +29,26 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
# No certification found, generate one # No certification found, generate one
cd /etc/ocserv cd /etc/ocserv
certtool --generate-privkey --outfile ca-key.pem certtool --generate-privkey --outfile ca-key.pem
cat << _EOF_CA_ > ca.tmpl cat > ca.tmpl <<-EOCA
cn = "$CA_CN" cn = "$CA_CN"
organization = "$CA_ORG" organization = "$CA_ORG"
serial = 1 serial = 1
expiration_days = $CA_DAYS expiration_days = $CA_DAYS
ca ca
signing_key signing_key
cert_signing_key cert_signing_key
crl_signing_key crl_signing_key
_EOF_CA_ EOCA
certtool --generate-self-signed --load-privkey ca-key.pem --template ca.tmpl --outfile ca-cert.pem certtool --generate-self-signed --load-privkey ca-key.pem --template ca.tmpl --outfile ca-cert.pem
certtool --generate-privkey --outfile server-key.pem certtool --generate-privkey --outfile server-key.pem
cat << _EOF_SRV_ > server.tmpl cat > server.tmpl <<-EOSRV
cn = "$SRV_CN" cn = "$SRV_CN"
organization = "$SRV_ORG" organization = "$SRV_ORG"
expiration_days = $SRV_DAYS expiration_days = $SRV_DAYS
signing_key signing_key
encryption_key #only if the generated key is an RSA one encryption_key #only if the generated key is an RSA one
tls_www_server tls_www_server
_EOF_SRV_ EOSRV
certtool --generate-certificate --load-privkey server-key.pem --load-ca-certificate ca-cert.pem --load-ca-privkey ca-key.pem --template server.tmpl --outfile server-cert.pem certtool --generate-certificate --load-privkey server-key.pem --load-ca-certificate ca-cert.pem --load-ca-privkey ca-key.pem --template server.tmpl --outfile server-cert.pem
# Create a test user # Create a test user
......
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