You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "Greenberg, Gary" <gg...@visa.com> on 2019/03/08 23:04:01 UTC

Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can't find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like "C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts"?


RE: Security certificates for access to GIT

Posted by "Greenberg, Gary" <gg...@visa.com>.
I got it.
I did resolve this issue by setting http.sslVerify=false in git configuration.
However, I am having the same problem now with Maven. I.e.
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at no local POM @ line 23, column 13

So, it can’t access artifactory.
However, Maven is part of Netbeans.
Where do I specify -Djavax.net.ssl.trustStore=/path/to/cacerts ?

Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Geertjan Wielenga <ge...@googlemail.com>
Sent: Tuesday, March 12, 2019 12:14 AM
To: Greenberg, Gary <gg...@visa.com>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Security certificates for access to GIT

Git and NetBeans are two totally different and separate tools. Each has its own configuration settings. The Git configuration file has nothing at all to do with NetBeans. Instead,  read the Git documentation to find where the Git configuration is done.

Gj

On Tue, 12 Mar 2019 at 01:27, Greenberg, Gary <gg...@visa.com>> wrote:
I have installed JCE according to this bug description, but it didn’t help.
I have found that adding http.sslVerify=false to git config might help, but where is git config in Netbeans?

From: Geertjan Wielenga <ge...@googlemail.com>>
Sent: Monday, March 11, 2019 1:48 PM
To: Greenberg, Gary <gg...@visa.com>>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Re: Security certificates for access to GIT

Hard to know how to help, not knowing your environment nor steps to reproduce, but maybe this: https://netbeans.org/bugzilla/show_bug.cgi?id=247761

Gj

On Mon, Mar 11, 2019 at 9:42 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have seen that post and several others similar to it.
I did import certificates for the Stash server using JDK keytool before posting my original question.
However, it does not help me

From: Geertjan Wielenga <ge...@googlemail.com>>
Sent: Monday, March 11, 2019 1:32 PM
To: Greenberg, Gary <gg...@visa.com>>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Re: Security certificates for access to GIT

https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

Gj

On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have tried all possible cases that I could have imagined.
I even copied cacerts file to my home directory and added
-J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts -J-Djavax.net.ssl.trustStorePassword=changeit
to netbeans_default_options in the conf file.
Nothing helps. Still getting same exception. Kind of ran out of ideas. Can anyone give me a helping hint?
Thanks.

From: Greenberg, Gary
Sent: Friday, March 8, 2019 3:04 PM
To: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can’t find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?


Re: Security certificates for access to GIT

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Git and NetBeans are two totally different and separate tools. Each has its
own configuration settings. The Git configuration file has nothing at all
to do with NetBeans. Instead,  read the Git documentation to find where the
Git configuration is done.

Gj

On Tue, 12 Mar 2019 at 01:27, Greenberg, Gary <gg...@visa.com> wrote:

> I have installed JCE according to this bug description, but it didn’t help.
>
> I have found that adding http.sslVerify=false to git config might help,
> but where is git config in Netbeans?
>
>
>
> *From:* Geertjan Wielenga <ge...@googlemail.com>
> *Sent:* Monday, March 11, 2019 1:48 PM
> *To:* Greenberg, Gary <gg...@visa.com>
> *Cc:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Re: Security certificates for access to GIT
>
>
>
> Hard to know how to help, not knowing your environment nor steps to
> reproduce, but maybe this:
> https://netbeans.org/bugzilla/show_bug.cgi?id=247761
>
>
>
> Gj
>
>
>
> On Mon, Mar 11, 2019 at 9:42 PM Greenberg, Gary <gg...@visa.com> wrote:
>
> I have seen that post and several others similar to it.
> I did import certificates for the Stash server using JDK keytool before
> posting my original question.
>
> However, it does not help me
>
>
>
> *From:* Geertjan Wielenga <ge...@googlemail.com>
> *Sent:* Monday, March 11, 2019 1:32 PM
> *To:* Greenberg, Gary <gg...@visa.com>
> *Cc:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Re: Security certificates for access to GIT
>
>
>
>
> https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find
>
>
>
> Gj
>
>
>
> On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com> wrote:
>
> I have tried all possible cases that I could have imagined.
>
> I even copied *cacerts* file to my home directory and added
>
> -J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts
> -J-Djavax.net.ssl.trustStorePassword=changeit
>
> to netbeans_default_options in the conf file.
>
> Nothing helps. Still getting same exception. Kind of ran out of ideas. Can
> anyone give me a helping hint?
>
> Thanks.
>
>
>
> *From:* Greenberg, Gary
> *Sent:* Friday, March 8, 2019 3:04 PM
> *To:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Security certificates for access to GIT
>
>
>
> I am getting an error, while trying to clone project from our GIT
> repository;
>
> *INFO [org.netbeans.modules.git]: **https://stash* <https://stash>*....:
> cannot open git-upload-pack*
>
> *sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target*
>
> I did, however, added all necessary certificates to the cacerts under JDK
> that is running Netbeans, but it still can’t find it.
>
> Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to
> netbeans_default_options in netbeans.conf?
>
> If so, how do I deal with blank spaces in the path, as it looks like
> “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?
>
>
>
>

RE: [EXT] Re: Security certificates for access to GIT

Posted by "Thomson, Duncan" <du...@mitre.org>.
I think Gary probably realizes git is a different tool, and knows he can go read up on it separately, but he’s asking how to configure how netbeans uses it.

If you first make sure you don’t have an existing git project selected in Netbeans, then go to Team / Git / Clone, you will get a menu like so.

[cid:image003.png@01D4DE7E.6FEBFFD0]

This is where you can configure your remote repository location and your SSH key.  Also note the Proxy Configuration – this can often cause problems when you are working inside a corporate firewall.


Also, under Tools/Options there is this:

[cid:image001.png@01D4DE7D.1DB0EEC0]

Also, if you right-click a project and then select Git/Repository/Open Configuration you get to something like this:

[cid:image002.png@01D4DE7D.6F6ED600]

From: Geertjan Wielenga <ge...@googlemail.com.INVALID>
Sent: Tuesday, March 12, 2019 3:14 AM
To: Greenberg, Gary <gg...@visa.com>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: [EXT] Re: Security certificates for access to GIT

Git and NetBeans are two totally different and separate tools. Each has its own configuration settings. The Git configuration file has nothing at all to do with NetBeans. Instead,  read the Git documentation to find where the Git configuration is done.

Gj

On Tue, 12 Mar 2019 at 01:27, Greenberg, Gary <gg...@visa.com>> wrote:
I have installed JCE according to this bug description, but it didn’t help.
I have found that adding http.sslVerify=false to git config might help, but where is git config in Netbeans?

From: Geertjan Wielenga <ge...@googlemail.com>>
Sent: Monday, March 11, 2019 1:48 PM
To: Greenberg, Gary <gg...@visa.com>>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Re: Security certificates for access to GIT

Hard to know how to help, not knowing your environment nor steps to reproduce, but maybe this: https://netbeans.org/bugzilla/show_bug.cgi?id=247761

Gj

On Mon, Mar 11, 2019 at 9:42 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have seen that post and several others similar to it.
I did import certificates for the Stash server using JDK keytool before posting my original question.
However, it does not help me

From: Geertjan Wielenga <ge...@googlemail.com>>
Sent: Monday, March 11, 2019 1:32 PM
To: Greenberg, Gary <gg...@visa.com>>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Re: Security certificates for access to GIT

https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

Gj

On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have tried all possible cases that I could have imagined.
I even copied cacerts file to my home directory and added
-J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts -J-Djavax.net.ssl.trustStorePassword=changeit
to netbeans_default_options in the conf file.
Nothing helps. Still getting same exception. Kind of ran out of ideas. Can anyone give me a helping hint?
Thanks.

From: Greenberg, Gary
Sent: Friday, March 8, 2019 3:04 PM
To: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can’t find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?


RE: Security certificates for access to GIT

Posted by "Greenberg, Gary" <gg...@visa.com>.
I have installed JCE according to this bug description, but it didn’t help.
I have found that adding http.sslVerify=false to git config might help, but where is git config in Netbeans?

From: Geertjan Wielenga <ge...@googlemail.com>
Sent: Monday, March 11, 2019 1:48 PM
To: Greenberg, Gary <gg...@visa.com>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Security certificates for access to GIT

Hard to know how to help, not knowing your environment nor steps to reproduce, but maybe this: https://netbeans.org/bugzilla/show_bug.cgi?id=247761

Gj

On Mon, Mar 11, 2019 at 9:42 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have seen that post and several others similar to it.
I did import certificates for the Stash server using JDK keytool before posting my original question.
However, it does not help me

From: Geertjan Wielenga <ge...@googlemail.com>>
Sent: Monday, March 11, 2019 1:32 PM
To: Greenberg, Gary <gg...@visa.com>>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Re: Security certificates for access to GIT

https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

Gj

On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have tried all possible cases that I could have imagined.
I even copied cacerts file to my home directory and added
-J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts -J-Djavax.net.ssl.trustStorePassword=changeit
to netbeans_default_options in the conf file.
Nothing helps. Still getting same exception. Kind of ran out of ideas. Can anyone give me a helping hint?
Thanks.

From: Greenberg, Gary
Sent: Friday, March 8, 2019 3:04 PM
To: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can’t find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?


Re: Security certificates for access to GIT

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Hard to know how to help, not knowing your environment nor steps to
reproduce, but maybe this:
https://netbeans.org/bugzilla/show_bug.cgi?id=247761

Gj

On Mon, Mar 11, 2019 at 9:42 PM Greenberg, Gary <gg...@visa.com> wrote:

> I have seen that post and several others similar to it.
> I did import certificates for the Stash server using JDK keytool before
> posting my original question.
>
> However, it does not help me
>
>
>
> *From:* Geertjan Wielenga <ge...@googlemail.com>
> *Sent:* Monday, March 11, 2019 1:32 PM
> *To:* Greenberg, Gary <gg...@visa.com>
> *Cc:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Re: Security certificates for access to GIT
>
>
>
>
> https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find
>
>
>
> Gj
>
>
>
> On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com> wrote:
>
> I have tried all possible cases that I could have imagined.
>
> I even copied *cacerts* file to my home directory and added
>
> -J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts
> -J-Djavax.net.ssl.trustStorePassword=changeit
>
> to netbeans_default_options in the conf file.
>
> Nothing helps. Still getting same exception. Kind of ran out of ideas. Can
> anyone give me a helping hint?
>
> Thanks.
>
>
>
> *From:* Greenberg, Gary
> *Sent:* Friday, March 8, 2019 3:04 PM
> *To:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Security certificates for access to GIT
>
>
>
> I am getting an error, while trying to clone project from our GIT
> repository;
>
> *INFO [org.netbeans.modules.git]: https://stash <https://stash>....:
> cannot open git-upload-pack*
>
> *sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target*
>
> I did, however, added all necessary certificates to the cacerts under JDK
> that is running Netbeans, but it still can’t find it.
>
> Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to
> netbeans_default_options in netbeans.conf?
>
> If so, how do I deal with blank spaces in the path, as it looks like
> “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?
>
>
>
>

RE: Security certificates for access to GIT

Posted by "Greenberg, Gary" <gg...@visa.com>.
I have seen that post and several others similar to it.
I did import certificates for the Stash server using JDK keytool before posting my original question.
However, it does not help me

From: Geertjan Wielenga <ge...@googlemail.com>
Sent: Monday, March 11, 2019 1:32 PM
To: Greenberg, Gary <gg...@visa.com>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Security certificates for access to GIT

https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

Gj

On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com>> wrote:
I have tried all possible cases that I could have imagined.
I even copied cacerts file to my home directory and added
-J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts -J-Djavax.net.ssl.trustStorePassword=changeit
to netbeans_default_options in the conf file.
Nothing helps. Still getting same exception. Kind of ran out of ideas. Can anyone give me a helping hint?
Thanks.

From: Greenberg, Gary
Sent: Friday, March 8, 2019 3:04 PM
To: NetBeans Mailing List <us...@netbeans.apache.org>>
Subject: Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can’t find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?


Re: Security certificates for access to GIT

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

Gj

On Mon, Mar 11, 2019 at 9:28 PM Greenberg, Gary <gg...@visa.com> wrote:

> I have tried all possible cases that I could have imagined.
>
> I even copied *cacerts* file to my home directory and added
>
> -J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts
> -J-Djavax.net.ssl.trustStorePassword=changeit
>
> to netbeans_default_options in the conf file.
>
> Nothing helps. Still getting same exception. Kind of ran out of ideas. Can
> anyone give me a helping hint?
>
> Thanks.
>
>
>
> *F**rom:* Greenberg, Gary
> *Sent:* Friday, March 8, 2019 3:04 PM
> *To:* NetBeans Mailing List <us...@netbeans.apache.org>
> *Subject:* Security certificates for access to GIT
>
>
>
> I am getting an error, while trying to clone project from our GIT
> repository;
>
> *INFO [org.netbeans.modules.git]: https://stash <https://stash>....:
> cannot open git-upload-pack*
>
> *sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target*
>
> I did, however, added all necessary certificates to the cacerts under JDK
> that is running Netbeans, but it still can’t find it.
>
> Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to
> netbeans_default_options in netbeans.conf?
>
> If so, how do I deal with blank spaces in the path, as it looks like
> “C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts”?
>
>
>

RE: Security certificates for access to GIT

Posted by "Greenberg, Gary" <gg...@visa.com>.
I have tried all possible cases that I could have imagined.
I even copied cacerts file to my home directory and added
-J-Djavax.net.ssl.trustStore=C:\Users\ggreenbe\keystore\cacerts -J-Djavax.net.ssl.trustStorePassword=changeit
to netbeans_default_options in the conf file.
Nothing helps. Still getting same exception. Kind of ran out of ideas. Can anyone give me a helping hint?
Thanks.

From: Greenberg, Gary
Sent: Friday, March 8, 2019 3:04 PM
To: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Security certificates for access to GIT

I am getting an error, while trying to clone project from our GIT repository;
INFO [org.netbeans.modules.git]: https://stash....: cannot open git-upload-pack
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I did, however, added all necessary certificates to the cacerts under JDK that is running Netbeans, but it still can't find it.
Do I need to add -Djavax.net.ssl.trustStore=/path/to/cacerts to netbeans_default_options in netbeans.conf?
If so, how do I deal with blank spaces in the path, as it looks like "C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacerts"?