EDITED
I am cloning git project using jgit library, and I need to clone this as ssh disabled. So I tried the Following method
Git result = Git.init().setDirectory(localPath).call();
StoredConfig config = result.getRepository().getConfig();
config.setBoolean( "http", null, "sslVerify", false );
config.setString("remote", "origin", "url", gitUrl);
config.save();
result.fetch().setRemote("origin").call();
But still, I am getting
org.eclipse.jgit.errors.TransportException: https://XXXX:XXX/root/XXXX.git: cannot open git-upload-pack
Is there a better way to clone git project with SSL disabled?