openvpn-client-key-gen.sh
#!/bin/bash |
# |
# OpenVPN Client Key Generation Script |
# |
# Author: rtfpessoa |
# Date: 03-09-2016 |
# |
# Based on the guide: |
# * https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 |
# |
# First argument: Client identifier |
# Second argument: Generate key with password |
client_key_name=$1 |
key_with_pass=$2 |
if [[ -z$client_key_name ]];then |
echo'Missing client key name!' |
exit 1 |
fi |
VPN_DIR=~/openvpn-ca |
KEY_DIR=${VPN_DIR}/keys |
CLIENT_CFG_DIR=~/client-configs |
OUTPUT_DIR=${CLIENT_CFG_DIR}/files |
BASE_CONFIG=${CLIENT_CFG_DIR}/base.conf |
mkdir -p $OUTPUT_DIR |
chmod 700 ~/client-configs/files |
# cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf ~/client-configs/base.conf |
cd${VPN_DIR} |
source vars |
if [[ -n$key_with_pass ]];then |
./build-key-pass ${client_key_name} |
else |
./build-key ${client_key_name} |
fi |
cat ${BASE_CONFIG} |
<(echo -e '<ca>') |
${KEY_DIR}/ca.crt |
<(echo -e '</ca>n<cert>') |
${KEY_DIR}/${1}.crt |
<(echo -e '</cert>n<key>') |
${KEY_DIR}/${1}.key |
<(echo -e '</key>n<tls-auth>') |
${KEY_DIR}/ta.key |
<(echo -e '</tls-auth>') |
>${OUTPUT_DIR}/${1}.ovpn |
Openvpn License Keygen
The server certificate and key: Run the following command and it will create the server1.crt and server1.key files in the keys directory. If using only OpenVPN v2.4 server and clients, consider to use -tls-crypt instead of -tls-auth Don't set -tls-cipher yourself. Fl Studio License Key Generator Search by typing & pressing enter. Generate Diffie Hellman parameters (This is necessary to set up the encryption) build-dh Generate a shared-secret key (Required when using tls-auth) 'C: Program Files OpenVPN bin openvpn.exe' -genkey -secret 'C: Program Files OpenVPN easy-rsa keys ta.key.
- From December 2016 through February 2017, Cryptography Engineering performed an independent security review of the OpenVPN codebase looking to uncover various. 27 Jan 2016 VPN Access Server Client license can be purchased for more than one year at the discount listed in the Openvpn License Hack Code License Key. Openvpn access server license key generator.
- Simple and useful generator of OpenVPN client configuration file with embedded certificates. Also creates new client's cert and key if the client does not exist. #Usage:./create-ovpn.sh USERNAME PORT where USERNAME is the name of client (creates new if don't exists) and PORT - is the port of your VPN server (1194 by default).
- Download OpenVPN Configuration Generator - Generate the files and parameters that are necessary for an OpenVPN server and client to run properly with commands using this app.
openvpn-client-key-revoke.sh
Openvpn Access Server License Key Generator
#!/bin/bash |
# |
# OpenVPN Client Key Revocation Script |
# |
# Author: rtfpessoa |
# Date: 03-09-2016 |
# |
# Based on the guide: |
# * https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 |
# |
# First argument: Client identifier |
client_key_name=$1 |
if [[ -z$client_key_name ]];then |
echo'Missing client key name!' |
exit 1 |
fi |
cd~/openvpn-ca |
source vars |
./revoke-full ${client_key_name} |
sudo cp -f ~/openvpn-ca/keys/crl.pem /etc/openvpn |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment