title: How do I use a local HTTPS URL in java?
body: <p>Using the Java URL class, I can connect to an external <code>HTTPS</code> server (such as our production site), but using a local URL I get following exception.  </p>
  
  <pre><code>"SunCertPathBuilderException: unable to find valid certification path to requested target".
  </code></pre>
  
  <p>How do I get a valid certification path?</p>
  
  <p>EDIT: I'm not using this URL to directly create a connection, I am passing the URL to an <code>itext</code> <code>PDFReader</code>, which is then having the connection issue.</p>