This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unabled to clone a git repository from Studio 2020.08.0

Hi,

I'm triying to configure git in my new Studio 2020.08.0 version.

First I have installed Git version 2.9.2 64 Bits and copy the bin Path in a new folder called Git (as appears in this guide https://docs.microfocus.com/itom/Operations_Orchestration:2020.08/InstallStudioClean). After that, I introduce all my credencials in

But when I trie to click in clone Button next error apears:

07/16/21 13:44:01 - Clone https://bitbuckeXXXXXXXXXXXXXX
bitbucketXXXXXXXXXXXXX: cannot open git-upload-pack
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I've tried configure my Studio.l4j.ini with this lines:

-Dssl.support-self-signed=true
-Dssl.verifyHostName=false

But it doesn't work (wor for connect to a remote central to debuging but not for GIT).

I tryed to configure the settings.xml file of my users profiles with this lines, but it's doesn't work Disappointed

<scmSettings>
         <scmType>Git</scmType>
         <scmUrl>bitbucketXXXXXXXXXXXXXXXXXX</scmUrl>
         <trustServerCert>true</trustServerCert>
         <scmUseWindowsAuthentication>false</scmUseWindowsAuthentication>
         <scmUsername>ds01767</scmUsername>
         <scmPassword>XXXXXXXXXXXXXXXXXX</scmPassword>
         <gitSshPrivateKeyPath>C:\Users\DS01767\.ssh\id_rsa</gitSshPrivateKeyPath>
         <gitSshPrivateKeyPassphrase/>
         <gitAuthenticationType>Credentials</gitAuthenticationType>
         <scmLockPolicy>false</scmLockPolicy>
      </scmSettings>

Any Idea how to solve it?

Thanks in advance and regards!

  • 0

    Use GitHub Desktop (or git) and clone it externally. Then start Studio and you will magically have a working connection. Commits and everything else will work after that from Studio.

  • Suggested Answer

    0 in reply to 

    One other thing, in case you have self-signed certificate on your Git server, you need to import CA key into your /.oo/client.truststore and/or studio\var\security\client.truststore. In case this doesn't work and git is still not using self-signed certificates, you might just disable self-signed (which is not recommeneded)...

    This is in case, you are getting:

    PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    Disabling global (for all users on this server/PC) or disable just for your self...

    git config --global http.sslVerify false
    All explained at https://stackoverflow.com/questions/9072376/configure-git-to-accept-a-particular-self-signed-server-certificate-for-a-partic