Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Disabling SSL Verification / Using Self-Signed Certs

2013/3/3 Isuru Haththotuwa <isurulucky@xxxxxxxxx>
Thanks for the input, but what I'm looking for is bypassing the public certificate verification, which is SSL. It is possible in JGit as per http://git.eclipse.org/c/jgit/jgit.git/commit?id=d49530ad861ee7053ca1a92d619f127b5d6bc3a1, but I'm having difficulty in using it in my java code which used JGit. Please let me know your ideas on how to do this.

your class CustomJschConfigSessionFactory extends the jsch session factory
which handles SSH connections so it's no surprise that this doesn't handle SSL
options. 

You could e.g. use a FileBasedConfig to load a configuration file in standard .gitconfig format

FileBasedConfig cfg = new FileBasedConfig(configFile, FS.DETECTED);
cfg.load();

--
Matthias


Back to the top