generate_openvpn_config.sh
#!/bin/bash |
# Easy script to create OpenVPN client configuration with the user, pre-generating user's |
# RSA key and certificate. |
# |
# Configuration template must exist in the same directory, with only missing part: certificates. |
# |
# (c) Dmytro Kovalov, 2015 |
# |
cd$(dirname ${BASH_SOURCE[0]}) |
read -p 'Please type in user name for the new config: ' USER |
[ -z${USER} ] && { echo'Cannot be empty';exit 1; } |
[ -f keys/${USER}.crt ] && { echo'Certificate keys/${USER}.crt already exists';exit 2; } |
source ./vars |
./build-key ${USER} |
( |
# This should be existing config template, with only missing certificates, and keys sections. |
cat config.ovpn.tpl |
echo'<key>' |
cat keys/${USER}.key |
echo'</key>' |
echo'<cert>' |
cat keys/${USER}.crt |
echo'</cert>' |
echo'<ca>' |
cat keys/ca.crt |
echo'</ca>' |
) > openvpn_${USER}.ovpn |
![Generate Generate](/uploads/1/2/5/8/125875496/543865275.png)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Add Ssh Key To Github
![Generate Read Only Github Key Generate Read Only Github Key](/uploads/1/2/5/8/125875496/230411855.png)
Generate Read Only Github Key Generator
I used ssh-keygen on rob to get a public key, which I gave to github in the add a new deploy key screen for repository cheech. Now I want to deploy chong on rob as well. Windows 10 generate csr private key location free. But if I go to the add new deploy key screen for repository chong on github, and paste in the public key I generated on rob it says key already in use.
Youth shape the future of a nation by replacing the previous generation in key political, social and cultural roles. This causes regular revolutions in values and ideas as people reach adulthood and take over for others. Accepted social mores often shift to reflect the views of the younger generation. Nov 15, 2016 A youth is any person between the age of 15 years and 30 years regardless of the gender. Unfortunately, the youth are the backbone of a society and hence they determine the future of any given society. This is because all other age groups, the kids, teenagers, middle aged and the senior citizens rely on the youth and expect a lot from them. Youth generation is the key to future of any country.