Skip to content

Instantly share code, notes, and snippets.

@EinPinsel
Forked from Maddosaurus/howto.sh
Created October 21, 2016 21:13
Show Gist options
  • Save EinPinsel/88b1566e76f372202e15f83316d25aa3 to your computer and use it in GitHub Desktop.
Save EinPinsel/88b1566e76f372202e15f83316d25aa3 to your computer and use it in GitHub Desktop.
Create OPenVPN cert
# become root
sudo su -
# change dir to easy rsa
cd /etc/openvpn/easy-rsa
# source the environment vars
source ./vars
# create a new cert
./build-key <clientname> # create without password
./build-key-pass <clientname> # create a key with password
# either option: If asked for input, just enter; accepting the defaults
# sign the certificate: y
# 1 out of 1 certificate requests certified, commit? [y/n]
# after completion, cat your <clientname>.crt and .key and enter these into your .ovpn file at the corresponding <cert> and <key> serctions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment