Pages

Tuesday, April 10, 2012

SmartGit SSL Certificate Problem, error:14090086:SSL




Problem:
You get error:14090086:SSL in SmartGit when trying to clone a remote repository using HTTPS (SSL):


Command Failed:  SSL certificate problem, verify that the CA cert is OK.  Details:  HTTP request failed: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https


Solution (Windows):

1.  Create a new directory called <project_name>

2. Right-Click on the new directory and select "Git Bash Here"

3.  Enter the following command lines:

git init

git config http.sslVerify false

git remote add origin https://</Bonobo.Git.Server/Git.aspx/pylet

4. Close the Git Bash

5. Open SmartGit and open the existing local repository, and click the Pull button


Warning:
This solution is a security risk if ever used with an external site and is intended for intranet servers with self-signed ssl certificates.  Do not use this solution with public servers and if your repository is ever moved to an external site, you will want to switch http.sslVerify back to true.

You might see examples using a global setting (git config --global http.sslverify "false") .  In the solution presented here, we are intentionally disabling SSL verification on a per repository basis so you can still safely use public repositories.


References:

1 comment:

  1. Thanks much! Since we use git internally, I have low security risk in disabling the ssl.

    ReplyDelete