TLS Error: TLS handshake failed
-
Had a client order a SG-2440, set it up with static ip, alls good.
Setup self signed CA and cert. Added users, added the cert to the user. Used the wizard to setup OpenVPN, making sure that I checked the boxes to add the rules to the firewall. Installed the OpenVPN Client Export Utility and exported the Viscosity bundle.
Transferred the viscosity bundle to the client machine, installed it and tried to connect. No go. On the client side it said: TLS Error: TLS handshake failed.
I checked the OpenVPN logs and saw the following errors: VERIFY ERROR: depth=0, error=unsupported certificate purpose
TLS_ERROR: BIO read tls_read_plaintext error: error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned
TLS Error: TLS object -> incoming plaintext read error
TLS Error: TLS handshake failedI also tried using the OpenVPN wizard to create the CA and certificates but that didn't work either.
I checked the forums, found a few other reports of this issue but no definitive solutions. Is there a solution to this problem?
-
" error=unsupported certificate purpose"
You have the wrong certs selected.. I would delete what you did and walk through the wizard!! It walks you through creating a CA, Server cert and then you create a client cert.
-
I did use the wizard as stated above. Never had any trouble before.
-
-
-
which is why I asked if he went through the wizard - the wizard creates SERVER cert.. Just ran through it again as test.. Never asks you - it auto creates the correct one.. So if you create a new CA, and next step create the cert its going to be a server cert.
If he ran through the wizard after trying to create his own certs then yeah he could of messed it up with your example.
-
See attached screenshots. I am making the correct certificates but no matter which method I use, the end results are the same.



 -
One other odd gotcha I've run into: make sure the time is correct on both client and server.
Perhaps try with a Windows export just to see if it my be a Viscosity prob?
No other good suggestions other than try to build OpenVPN clean from scratch?
-