previous experiments
This commit is contained in:
parent
073bab1b9d
commit
b6970a585a
4 changed files with 22 additions and 0 deletions
1
experiments/.dockerignore
Normal file
1
experiments/.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
openvpn
|
1
experiments/.gitignore
vendored
Normal file
1
experiments/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
openvpn/pki
|
12
experiments/Dockerfile
Normal file
12
experiments/Dockerfile
Normal 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"
|
||||||
|
|
8
experiments/openvpn/build_ca.sh
Executable file
8
experiments/openvpn/build_ca.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue