Set up a VPN with X.509 certificate-based authentication using OpenVPN and OpenSSL

Gentoo, Linux, OpenSSL, OpenVPN, Windows 2 Comments »

Download Video (1437 KB)

A VPN (virtual private network) is a private, encrypted network that traverses a public network (such Internet). This is a way of giving remote users access to local network resources as if they were themselves local.

X.509 is an industry-standard format for SSL certificates.

In this video I will show how to setup a VPN server with X.509 certificate-based authentication using OpenVPN which secure authentication and encryption functions relies on OpenSSL. Also, in tutorial will be shown how to connect to this VPN server from Linux and Windows machines.

Video tutorial consists from 6 parts:
Part 1. Configure OpenSSL (11:09 min)
Part 2. Generate certificates and keys for VPN server, Linux and Windows clients (10:24 min)
Part 3. Install and configure VPN (10:44 min)
Part 4. Connecting to VPN server from Linux host (08:30 min)
Part 5. Connecting to VPN server from Windows host (07:56 min)
Part 6. Testing VPN Connectivity (01:25 min)

Installation steps.
Part 1. Configure OpenSSL

SSL is based on public-key cryptography where each party has two key: one public and one private. Private key is used to sign data digitally then you send it, and to decrypt data that have been sent to you. Public key is used to verify data that have been signed and sent to you, and to encrypt data that you will send.
Read the rest of this entry »

Entries RSS Comments RSS