KP Solutions

Solutions for Day to Day Technical Problems

SVN SSL handshake failed: SSL error: A TLS warning alert has been received

| 0 comments

You have a SVN server which is hosted on Apache with SSH Support. Now when you are checking out the SVN repo to your local linux box, you get this weird error:

SSL handshake failed: SSL error: A TLS warning alert has been received

In Mac/Windows, you would be able to check out the repo without issue, but on linux – no, it simply doesn’t work. Now you would do few google searches and look at stack overflow, but nothing will shed you light. I spent about 2 hours fixing this issue and what it was!! You will know in a sec…

svn co https://127.0.0.1/svn_repo_url

The above command gives you error. However, if your SSL certificate is created using a host name, then the ip address will not work in the URL. You have to change the url to match your SSL host name (must be same in ssl.conf in httpd/conf.d and SSL cerficate)

svn co https://kpsolution.com/svn_repo_url

Now it will work. Bloody hell! it’s just plain idiotic. Hope this helps.

Ketan Patel