Skip to content

Instantly share code, notes, and snippets.

View sufehmi's full-sized avatar

Harry Sufehmi sufehmi

View GitHub Profile
@xenithorb
xenithorb / mkovpn.sh
Last active April 26, 2021 20:05
OpenVPN EasyRSA companion to output OVPN files (.ovpn) that contain embedded certs and keys
#!/bin/bash
# Generate OVPN files (single config w/ certs and keys) for OpenVPN
# from EasyRSA tool's pki folder output
#
# - Tool expects to be in easy-rsa's pki fodler ( after `easy-rsa init-pki` )
# - outputs to ovpn-out folder
# Expected usage:
# $ # First install easy-rsa with your pkg manager
# $ mkdir ~/openvpn # new folder
# $ cd ~/openvpn