Windows + Netbeans + Gitblit: Netbeans cannot connect to remote repository

3,176 views
Skip to first unread message

Diana Chávez

unread,
Sep 11, 2012, 5:10:00 PM9/11/12
to git...@googlegroups.com
Every time I try to push/pull using Netbeans git's plugin I get a "Netbeans can't connect to remote repository",
I'm using the URL of my repository https://di...@192.168.1.4:8443/git/TestRepo.

I added an screenshoot.

Can anyone help me?

netbeans.png

MoH

unread,
Sep 12, 2012, 2:52:28 AM9/12/12
to git...@googlegroups.com
Hi Diana,

as far as i know, SSL-certificate is only signed for localhost. Did u have made a self signed certificate for host "diana" ? see file "makekeystore.[cmd|sh]".
If u really use https with self signed certificates , u have to tell git that self signed are okay :-)  => git config  http.sslVerify false

Can't u use http instead of https?

Well, i have created a new test repo. My URL ends with ".git"... Please, add "git" at the end of your git url and try again.


Greetz
Sascha


On Tuesday, September 11, 2012 11:10:00 PM UTC+2, Diana Chávez wrote:
Every time I try to push/pull using Netbeans git's plugin I get a "Netbeans can't connect to remote repository",
I'm using the URL of my repository https://diana@192.168.1.4:8443/git/TestRepo.

MoH

unread,
Sep 12, 2012, 2:53:55 AM9/12/12
to git...@googlegroups.com


On Wednesday, September 12, 2012 8:52:28 AM UTC+2, MoH wrote:

. Did u have made a self signed certificate for host "diana" ?

Sry, i wanted to write "host 192.168.1.4"  :-)

MoH

unread,
Sep 12, 2012, 3:30:04 AM9/12/12
to git...@googlegroups.com
see https://groups.google.com/d/msg/gitblit/W-lgj-V5_F0/1-k2Wx5q-loJ

James have written that JGit-based clients (like ur NetBeans) still verify the hostname of your self signed certificate.
U have to genrate a new self signed certificate....



On Wednesday, September 12, 2012 8:52:28 AM UTC+2, MoH wrote:

Diana Chávez

unread,
Sep 12, 2012, 5:22:02 PM9/12/12
to git...@googlegroups.com
Hi MoH, Yes, ssl certificate and netbeans is the problem here, cuz I can perfectly connect to server using Git bash, well I'll try generate a self signed certificate, but I don't know how to do that, any link to help me?, and thaks for your answers 

James Moger

unread,
Sep 12, 2012, 5:32:55 PM9/12/12
to git...@googlegroups.com
This process is documented here:

-J
Reply all
Reply to author
Forward
0 new messages