In some cases after having AWS VPN Client connected for a while it get’s stuck (connection timeouts when trying to connect to private resources) and after restart it throws TLS Handshake error.
“aws vpn client Connection failed because of a TLS handshake error.”
Option 1: restart laptop.
Option 2: there is a leftover process, find a kill it.
ps aux | grep -i vpn
aram.karapetyan 28341 0.0 0.0 408496064 976 s003 R+ 5:00PM 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox -i vpn
aram.karapetyan 28114 0.0 0.3 35789116 22004 ?? S 4:57PM 0:06.61 /Applications/AWS VPN Client/AWS VPN Client.app/Contents/MacOS/AWS VPN ClientThe second process is the one hanging, that needs to be killed.
Second column contains process id, copy that and run following command to kill the process.
kill 28114After this AWS VPN Client will be able to connect.