Upgrade to Alpine 3.17, adjust to latest OpenSSL
This commit is contained in:
parent
59c8f09285
commit
03deaac4a2
@ -1,4 +1,4 @@
|
|||||||
ARG ALPINE_VERSION=3.16
|
ARG ALPINE_VERSION=3.17
|
||||||
|
|
||||||
FROM alpine:${ALPINE_VERSION}
|
FROM alpine:${ALPINE_VERSION}
|
||||||
ARG ALPINE_VERSION
|
ARG ALPINE_VERSION
|
||||||
@ -25,7 +25,8 @@ RUN cd /etc/apk/keys && \
|
|||||||
ENV OPENVPN=/etc/openvpn
|
ENV OPENVPN=/etc/openvpn
|
||||||
ENV EASYRSA=/usr/share/easy-rsa \
|
ENV EASYRSA=/usr/share/easy-rsa \
|
||||||
EASYRSA_CRL_DAYS=3650 \
|
EASYRSA_CRL_DAYS=3650 \
|
||||||
EASYRSA_PKI=$OPENVPN/pki
|
EASYRSA_PKI=$OPENVPN/pki \
|
||||||
|
EASYRSA_SILENT=1
|
||||||
|
|
||||||
VOLUME ["/etc/openvpn"]
|
VOLUME ["/etc/openvpn"]
|
||||||
|
|
||||||
|
@ -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
|
touch $OPENVPN/otp/_empty $OPENVPN/ccd/_empty
|
||||||
|
|
||||||
# Finally generate server cert
|
# Finally generate server cert
|
||||||
easyrsa build-server-full "$1" nopass
|
cat << EOF | easyrsa build-server-full "$1" nopass
|
||||||
|
yes
|
||||||
|
EOF
|
||||||
|
|
||||||
# write server FQDN
|
# write server FQDN
|
||||||
echo "$1" > $OPENVPN/server
|
echo "$1" > $OPENVPN/server
|
||||||
|
Loading…
Reference in New Issue
Block a user