aboutsummaryrefslogtreecommitdiff
path: root/netsec-assignment5-S4498062/exercise5/exercise5a/commands
blob: 607002cf6ce5fd102ee9047fec84d758dffbb56f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
As on https://openvpn.net/index.php/open-source/documentation/howto.html#pki,
on the server:

# cp -R /usr/share/doc/openvpn /etc/openvpn
# cd /etc/openvpn/examples/easy-rsa/2.0
# . ./vars
# ./clean-all
# ./build-ca
# ./build-key-server server
# ./build-key client
# ./build-dh

Then the client.crt, client.key and ca.crt I copied to the client.

On the client I only had to edit client.conf.

Then, on the server:

# openvpn server.conf

And on the client:

# openvpn client.conf