WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Git HTTPS SSL Certificate Problem  (Read 8654 times)

Offline KHarvey

  • Full Member
  • ***
  • Posts: 102
Git HTTPS SSL Certificate Problem
« on: January 17, 2013, 10:32:47 AM »
I just had a TC crash yesterday and I lost all of my code I was developing on there.  While it will only take a me a week or so to rebuild it all, I wanted to start saving my Git repositories off to a more redundant location to avoid this issue in the future.

I signed up with GitHub and I added a remote repo inside of git:
git remote add FTP https://github.com/username/FTP.git

When I do a push:
git push FTP master

I receive an error:
error:  SSL certificate problem, verify that the CA cert is OK.  Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/username/FTP.git/info/refs?service=git-receive-pack
fatal:  HTTP request failed

After googling for the last hour the only thing I can find is that I need to install the curl certificate pack to resolve the issue.  http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/
But I am unsure how to go about this in TC and even if it would work.
I am running an older version of TC (3.0.21).

I would like to avoid installing OpenSSH on this computer if possible, but if I need to, then I can.

Any suggestions?

Offline mocore

  • Hero Member
  • *****
  • Posts: 667
  • ~.~
Re: Git HTTPS SSL Certificate Problem
« Reply #1 on: January 17, 2013, 11:49:00 AM »

try with
Quote
git remote add FTP git://github.com/username/FTP.git

i has similar error
when trying to pull with https
using "git://" not "https://" worked in my case

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Git HTTPS SSL Certificate Problem
« Reply #2 on: January 17, 2013, 01:56:27 PM »
Googling "error:14090086:SSL" brings up countless results, seems to be a common occurance.
You could try dropbear before OpenSSH.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline KHarvey

  • Full Member
  • ***
  • Posts: 102
Re: Git HTTPS SSL Certificate Problem
« Reply #3 on: January 17, 2013, 04:02:17 PM »
Thanks dubcore

That works as long as I have have SSH setup.  Which it is setup on my laptop, and works great.
I used the workaround of git config --global http.sslVerify false on my computer to get it working for now.

I will continue to do research and see if I can find a solution to fix the HTTPS problem.  I think I just need to install the certificate and it will work, but I am unsure how to do that.

Offline justauser

  • Newbie
  • *
  • Posts: 17
Re: Git HTTPS SSL Certificate Problem
« Reply #4 on: April 04, 2013, 08:08:33 AM »
I am using dropbear.  Did you ever find a solution to this?  I also have issues with curl.

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Git HTTPS SSL Certificate Problem
« Reply #5 on: April 04, 2013, 03:36:33 PM »
Typing quick because I have to leave for work in about 30 seconds, so sorry if this is slightly confusing or doesn't quite answer the question:

Git + dropbear ssh + github: Set up a little bash script that looks like this:

Code: [Select]
$ cat ~/.local/bin/ssh-keys.sh
#!/bin/sh
ssh ssh -i ~/.ssh/git.id_rsa -i ~/.ssh/jls.id_rsa  $@

And set up an env var:
Code: [Select]
$ export GIT_SSH=ssh-keys.sh
Then you should be able to push and pull using git:// urls.

For git + https:// :
install ca-certificates
Add a section to your ~/.gitconfig that looks like this:
Code: [Select]
[http]
sslcapath = /usr/local/etc/ssl/certs