The OpenVPN Cookbook 2011 Book comes with these 2 commands for a client/server recipe configuration stating the client certificates can be build with or without passphrase
./build-key-server --batch openvpnclient1
./build-key-pass openvpnclient2
When connecting the client vpn side, I was getting
VERIFY ERROR: unsupported certificate purpose
WARNING: No server certificate verification method has been enabled.
Researching around found a guy with same error that determined it was a client-server mismatch of the certificates:
http://gozer.ectoplasm.org/blog/archive/2007/07/openvpn_verify.html
I found this to verify what type of certificate you have:
www.madboa.com/geek/openssl/#cert-exam
In summary, the commands in the recipe do not build client certificates, but server certs instead.
At the end, running ./build-key-server with no parameteres spit the entire list of options and usage, where I found this nice command
./pkitool
./pkitool --pass
Thats it! All I needed and wanted in order to build my client certificate, with no "server" reference at all when looked up with
openssl x509 -in cert.crt -text
Jan if you are around, could you please clarify if this is something to include in the Errata doc?
Thanks,