title: Jenkins "unable to find valid certification path to requested target" error while importing Git repository
body: <p>I'm trying to build a <a href="https://git-scm.com/docs/git-checkout" rel="noreferrer">Git repo</a> from Jenkins using the <a href="https://wiki.jenkins.io/display/JENKINS/Git+Plugin" rel="noreferrer">Jenkins Git Plugin</a> on my laptop. The Git repo resides on company trusted server which has self-signed certificates. While specifying the URL I'm always getting an error: </p>
  
  <pre><code>Failed to connect to repository : sun.security.validator.ValidatorException:
  PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
  unable to find valid certification path to requested target
  </code></pre>
  
  <p>I understand this error surfaces due to self-signed certificates but the server belongs to my company and is signed by authority.</p>
  
  <p>I also tried to import the same repo from another laptop using self-signed and keep getting the same error.</p>
  
  <p>Any help will be appreciated</p>