changelog shortlog graph tags branches changeset files revisions annotate raw help

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

changeset 336: d1b76011e49c
parent: 847281f20daf
author: Richard Westhaver <ellis@rwest.io>
date: Mon, 08 Jul 2024 13:33:10 -0400
permissions: -rwxr-xr-x
description: install-emacs fixes
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