previous experiments

This commit is contained in:
Jörn-Michael Miehe 2022-03-14 00:41:45 +01:00
parent 073bab1b9d
commit b6970a585a
4 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1 @@
openvpn

1
experiments/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
openvpn/pki

12
experiments/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM alpine:latest
# LABEL maintainer=""
RUN set -ex; \
\
apk --no-cache add \
easy-rsa \
; \
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin;
WORKDIR "/opt/openvpn"

View file

@ -0,0 +1,8 @@
#!/bin/sh
set -ex
easyrsa init-pki
easyrsa --batch --passout="pass:passwd" --passin="pass:passwd" --req-cn="kiwi-vpn" --days="$(( 365 * 50 ))" build-ca
easyrsa --batch --passin="pass:passwd" --days="$(( 365 * 50 ))" build-server-full bababooey nopass