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

Seems this not SSL verification, but SSH Verification. 

See if this could help:

-- Aldrin Leal, <aldrin@xxxxxxxxxxx>
Master your EC2-fu! Get the latest ekaterminal public beta

On Sun, Mar 3, 2013 at 9:09 AM, Isuru Haththotuwa <isurulucky@xxxxxxxxx> wrote:
Ping! Any idea, anyone?


As per , jgit supports disabling SSL verification, but I'm not quite sure how to use it in my code. As explained in the above link, I added 'http.sslVerify' and 'false' as a key value pair and set them as a configuration parameter:

public class CustomJschConfigSessionFactory extends JschConfigSessionFactory {
    protected void configure(OpenSshConfig.Host host, Session session) {

        java.util.Properties config = new java.util.Properties();
        config.put("http.sslVerify", false);      

and then I used an instance of this custom session factory class to populate the SSHSessionFactory:

SshSessionFactory.setInstance(new CustomJschConfigSessionFactory());
But, after doing this I still get the error:

org.eclipse.jgit.api.errors.TransportException: cannot open git-upload-pack

What have I done wrong here in disabling SSL verification? Please let me know the correct way of doing it.

Thanks and Regards,

jgit-dev mailing list

Back to the top