2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 06:28:23 +01:00

fix ocserv

This commit is contained in:
kev
2016-06-29 20:28:13 +08:00
parent 30485449c3
commit 6841473d27
2 changed files with 8 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ _EOF_
cat > server.tmpl <<_EOF_
cn = "${VPN_DOMAIN}"
dns_name = "${VPN_DOMAIN}"
organization = "ocserv"
serial = 2
expiration_days = 3650
@@ -75,12 +76,13 @@ certtool --generate-certificate \
--outfile client-cert.pem
certtool --to-p12 \
--load-privkey client-key.pem \
--pkcs-cipher 3des-pkcs12 \
--load-ca-certificate ca-cert.pem \
--load-certificate client-cert.pem \
--load-privkey client-key.pem \
--outfile client.p12 \
--outder \
--p12-name "${VPN_USERNAME}" \
--p12-name "${VPN_DOMAIN}" \
--password "${VPN_PASSWORD}"
sed -i -e "s@^ipv4-network =.*@ipv4-network = ${VPN_NETWORK}@" \