Skip to content

Instantly share code, notes, and snippets.

@alastairhm
Created April 20, 2017 11:05
Show Gist options
  • Save alastairhm/3543d5a4f9c4718990230600d9553c9b to your computer and use it in GitHub Desktop.
Save alastairhm/3543d5a4f9c4718990230600d9553c9b to your computer and use it in GitHub Desktop.
Create a new VPN cert
#!/bin/bash
export OVPN_DATA="ovpn-data"
docker run --volumes-from $OVPN_DATA --rm -it kylemanna/openvpn easyrsa build-client-full ${1} nopass
docker run --volumes-from $OVPN_DATA --rm kylemanna/openvpn ovpn_getclient pizero > ${1}.ovpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment