Difference between revisions of "Openvpn"

From RARFORGE
Jump to: navigation, search
(Install)
(Install)
Line 14: Line 14:
  
 
<source>
 
<source>
cd /etc/openvpn/easy-rsa/
+
emacs /etc/openvpn/easy-rsa/vars
emacs vars
+
 
</source>
 
</source>
 
<source>
 
<source>
Line 28: Line 27:
 
export KEY_NAME=changeme
 
export KEY_NAME=changeme
 
export KEY_OU=changeme
 
export KEY_OU=changeme
export PKCS11_MODULE_PATH=changeme
 
export PKCS11_PIN=1234
 
 
</source>
 
</source>
  
 +
 +
<source>
 +
cd /etc/openvpn/easy-rsa/
 +
source ./vars
 +
./clean-all
 +
./build-ca
 +
</source>
 +
 +
 +
<source>
 +
cd /etc/openvpn/easy-rsa
 +
./build-key-server server
 +
</source>
 +
 +
<source>
 +
cd /etc/openvpn/easy-rsa
 +
./build-key client
 +
#./build-key <client_name>
 +
</source>
  
 
[[Category:How-to]]
 
[[Category:How-to]]
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 09:36, 29 August 2013

Centos 6.4

Install

yum -y install openvpn easy-rsa


mkdir -p /etc/openvpn/easy-rsa/keys
cp -rf /usr/share/easy-rsa/2.0/* /etc/openvpn/easy-rsa


emacs /etc/openvpn/easy-rsa/vars
# modify variables in file: vars (bottom of file)
export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="SanFrancisco"
export KEY_ORG="Fort-Funston"
export KEY_EMAIL="me@myhost.mydomain"
export KEY_EMAIL=mail@host.domain
export KEY_CN=changeme
export KEY_NAME=changeme
export KEY_OU=changeme


cd /etc/openvpn/easy-rsa/
source ./vars
./clean-all
./build-ca


cd /etc/openvpn/easy-rsa
./build-key-server server
cd /etc/openvpn/easy-rsa
./build-key client
#./build-key <client_name>
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox