kiwi-vpn/experiments/openvpn/build_ca.sh

9 lines
254 B
Bash
Raw Normal View History

2022-03-13 23:41:45 +00:00
#!/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