Configure OpenVPN client on Windows
How to configure OpenVPN client on Windows:
First download and install the client.
Then we'll need the client files generated on the OpenVPN server: dh1024.pem, ca.crt, client1.crt, client1.key
Copy the files to OpenVPN working directory, for example: C:\Program Files\OpenVPN\config\
Now we need to create config file. Create text document client1 and add configuration strings, for example:
client dev tun proto udp remote 10.10.0.1 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert client1.crt key client1.key comp-lzo verb 4
Example of the client conf file with embedded certificates:
client dev tun proto udp remote 10.10.0.1 1194 resolv-retry infinite nobind persist-key persist-tun comp-lzo verb 4 <ca> -----BEGIN CERTIFICATE----- ***Paste CA Cert Text Here*** -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- ***Paste Your Cert Text Here*** -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- ***Paste Your Cert Private Key Here*** -----END PRIVATE KEY----- </key>
Extended description of all the strings is here
Save the file with extention .ovpn (client1.ovpn). Config file must be in the same directory as files server.crt, ca.crt, client1.crt, client1.key are.
Run OpenVPN GUI with administrator rights. Icon should appear in Windows tray and all options are there.
""