changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/easy-rsa-gen-server.sh

changeset 371: 7dcabf3e0edc
parent: 847281f20daf
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:53:24 -0400
permissions: -rwxr-xr-x
description: no link in bootstrap.sh
1 #!/usr/bin/bash
2 cd /etc/easy-rsa
3 easyrsa init-pki
4 easyrsa gen-req $HOSTNAME nopass
5 cp /etc/easy-rsa/pki/private/$HOSTNAME.key /etc/openvpn/server/
6 # HMAC key with elliptic curve
7 openvpn --genkey tls-auth /etc/openvpn/server/ta.key
8 chown openvpn:network /etc/openvpn/server/ta.key