Upgrade to Alpine 3.17, adjust to latest OpenSSL

This commit is contained in:
Stefan Reimer 2023-04-03 08:54:03 +00:00
parent 59c8f09285
commit 03deaac4a2
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
ARG ALPINE_VERSION=3.16
ARG ALPINE_VERSION=3.17
FROM alpine:${ALPINE_VERSION}
ARG ALPINE_VERSION
@ -25,7 +25,8 @@ RUN cd /etc/apk/keys && \
ENV OPENVPN=/etc/openvpn
ENV EASYRSA=/usr/share/easy-rsa \
EASYRSA_CRL_DAYS=3650 \
EASYRSA_PKI=$OPENVPN/pki
EASYRSA_PKI=$OPENVPN/pki \
EASYRSA_SILENT=1
VOLUME ["/etc/openvpn"]

View File

@ -17,7 +17,9 @@ mkdir -p $OPENVPN/pki/reqs $OPENVPN/pki/issued $OPENVPN/pki/certs_by_serial $OPE
touch $OPENVPN/otp/_empty $OPENVPN/ccd/_empty
# Finally generate server cert
easyrsa build-server-full "$1" nopass
cat << EOF | easyrsa build-server-full "$1" nopass
yes
EOF
# write server FQDN
echo "$1" > $OPENVPN/server