Also it looks like client1.crt and server.crt files are 0kb
Any ideas?-kartal
Not saying it is, (but it has happened to me), it looks like you failed to enter exactly the same Common Name as you called the batch files with, it's possible that an error was generated when you created the keys/certs but you didn't notice among the DOS output:
Generate certificate & key for server
Next, we will generate a certificate and private key for the server. On Windows:
build-key-server server
As in the previous step, most parameters can be defaulted. When the Common Name is queried, enter "server". Two other queries require positive responses, "Sign the certificate? [y/n]" and "1 out of 1 certificate requests certified, commit? [y/n]".
Generate certificates & keys for 1 client
Generating client certificates is very similar to the previous step. On Windows:
build-key client1
Remember that for each client, make sure to type the appropriate Common Name when prompted, i.e. "client1". Always use a unique common name for each client.
* I removed any reference to more than 1 client in the above to make it a bit clearer.
You need to follow the instructions in
Setting up your own Certificate Authority (CA) and generating certificates and keys for an OpenVPN server and multiple clients pretty much word for word.
So the order of events for Windows should be:
1 ) open up a Command Prompt window and cd to
\Program Files\OpenVPN\easy-rsa2 )
init-config3 ) edit the
vars.bat file to set location/email defaults (or skip this step and just use the given ones if you don't care)
4 )
vars5 )
clean-all6 )
build-ca (default answers normally but enter something at
Common Name query - use the same as they do
OpenVPN-CA)
7 )
build-key-server server (enter
server at Common Name and answer
y to "Sign the certificate? [y/n]" and "1 out of 1 certificate requests certified, commit? [y/n]")
8 )
build-key client1 (same answers as (7) but enter
client1 at Common Name)
9 )
build-dhThis should give you all the necessary keys/certs for a simple 1 server/1 client VPN, so it only remains to copy them to their respective config directories.
If you do it again and it still happens, copy the output from all the steps above to a text file and then attach it to a post and I'll see if I can spot anything.
Otherwise, later today I'll set up OpenVPN again, (had to restore my OS from an old image due to cleaning one too many things out driver-wise

), and generate a complete keys directory for a server/client and you can try that.
Addendum: Following the steps above, (except step 3), I've generated server/client1 keys/certs/config that work here. You'll need to edit client.ovpn and replace 192.168.0.128 with the LAN IP of your OpenVPN server. Otherwise just delete the config directories you have and replace with these.
I've also attached the DOS output from generating the certs/keys so you can compare with yours and a ping to show it really does work
