Solution found for anyone who doesn't want to roll back to 2.1.4. This is for Windows 7 x64.
- Uninstall OpenVPN
- Delete folder: C:\Program Files (x86)\OpenVPN
- Install OpenVPN 2.2.1 (or newest version)
- start->run->cmd (as admin)
- > cd C:\Program Files (x86)\OpenVPN\easy-rsa
- > init-config
- Now open vars.bat in text editor as admin and change the vars to something like:
set KEY_COUNTRY=US
set KEY_PROVINCE=CA
set KEY_CITY=SanFrancisco
set KEY_ORG=ORG
set KEY_EMAIL=mail@host.org
set KEY_CN=common
set KEY_NAME=NAME
set KEY_OU=OU
set PKCS11_MODULE_PATH=NA
set PKCS11_PIN=NA
- Now back to command prompt
- > vars
- > clean-all
- > build-ca
- > build-key-server server
- Important - When you are being prompted for input, change the common name to something unique like server
- > build-dh
- Copy ca.crt, ca.key, dh1024.pem, server.crt, server.key to the openvpn server
- Restart the server instance of openvpn. Make sure it starts with no errors.
Now back to command prompt
- > build-key client1
- Important - When you are being prompted for input, change the common name to something unique like client1
- > build-key client2
- Important - When you get the prompts, change the common name to something unique like client2
Should be all done, with no errors, or very few errors. A common error does seem to be
unable to write 'random state', but it doesn't seem to be critical.
Now load your client certs in to client config dir and start OpenVPN GUI. See if it all works.