changelog shortlog graph tags branches changeset files revisions annotate raw help

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

changeset 215: f9dd5267b566
parent: 847281f20daf
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 30 Apr 2024 23:07:50 +0000
permissions: -rwxr-xr-x
description: easy-rsa
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