Search This Blog

Wednesday, November 19, 2014

OpenVPN for Raspberry Pi

* It’s possible to create just one client key for all of them, but in that case, only one device would be able to access the VPN at a time. ?

/etc/init.d/openvpn start

Create an account after the installation

1. Run a root shell to access /etc

$ sudo -s

2. Change directory to /etc/openvpn/easy-rsa

$ cd /etc/openvpn/easy-rsa

3. Set up the environment variables to create accounts

$ source ./vars

4. Create a user key pass

$ ./build-key-pass [user]

* Create PEM pass phrase and remember that
* Leave the challenge password blank
* Sign and commit the certificate
* This command will create 3 files in /etc/openvpn/easy-rsa/keys: user.crt, user.csr, and user.key

5. Create a des3 encrypted version of the key

$ openssl rsa -in [user].key -des3 -out [user].3des.key

* Create pass  phrase for the key and PEM pass phrase (same as the PEM pass phrase - mendatory?)

6. Create the ovpn file (openVPN configuration file for clients)

$ ./

* Enter the user name
* This command will create [user].ovpn

Blog Archive