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, 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

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

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


Back to the top