If I use jgit clone to clone repository from remote instance docker, I am getting this error:
org.eclipse.jgit.api.errors.TransportException: https://<repo url>: Secure connection to https://<repo url> could not be established because of SSL problems 
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I am trying to bypass SSL check as mentioned here: Turn SSL verification off for JGit clone command As given in the above link, I am trying to use jgit fetch(), instead of jgit clone:
public void fetchRepository(Git git) throws GitAPIException {
    FetchCommand fetchCommand =
            git.fetch()
                    .setCredentialsProvider(
                            new UsernamePasswordCredentialsProvider(
                                    user, getSecretAuthTokenProvider(accountName)));
    fetchCommand.call();
}
but getting this exception: 'org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: origin: not found.'
How should I clone entire repository using jgit fetch?/ How should I bypass SSL certification check?/ How should I resolve SSL certification issue for docker?
