title: Connection Failure when trying to make simple REST call to Jira API
body: <p>I have this simple GET call that works perfectly from Postman, Powershell, C# and even browser JS ( after disabling CORS ), but porting it to a ColdFusion CFHTTP call is failing.</p>
  <p>Below is the response from the Jira API:</p>
  <pre><code>{
    &quot;ErrorDetail&quot;: &quot;I/O Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&quot;,
    &quot;Mimetype&quot;: &quot;Unable to determine MIME type of file.&quot;,
    &quot;Filecontent&quot;: &quot;Connection Failure&quot;,
    &quot;Statuscode&quot;: &quot;Connection Failure.  Status code unavailable.&quot;,
    &quot;Responseheader&quot;: {
      
    },
    &quot;Text&quot;: true,
    &quot;Charset&quot;: &quot;&quot;,
    &quot;Header&quot;: &quot;&quot;
  }
  </code></pre>
  <p><strong>CF Code:</strong></p>
  <pre><code>&lt;cfset jql=&quot;&lt;redacted&gt;&quot;&gt;
  &lt;cfset jiraEndpoint ='https://jira.bullhorn.com/rest/api/2/search?jql=#jql#'&gt;
  
  &lt;cfhttp url = &quot;#jiraEndpoint#&quot; result=&quot;res&quot; method=&quot;get&quot; username=&quot;&lt;redacted&gt;&quot; password=&quot;&lt;redacted&gt;&quot;&gt;    
      &lt;cfhttpparam type=&quot;header&quot; name=&quot;Accept&quot; value=&quot;application/json&quot; /&gt;    
  &lt;/cfhttp&gt;
  
  &lt;cfheader name=&quot;Content-Type&quot; value=&quot;application/json&quot;&gt;
  &lt;cfoutput&gt;
      #serializeJSON(res)#
  &lt;/cfoutput&gt;
  </code></pre>
  <p><strong>Things I have tried:</strong></p>
  <ul>
  <li>Used a Authorization header with value <code>&quot;Basic &lt;base64 encoded string version of username:password&gt;&quot;</code></li>
  <li>Added <code>Content-Type</code> header</li>
  <li>Added <code>mimetype</code> header</li>
  <li>Tried to use <a href="https://github.com/DealerPeak/Jira-REST-API-cfc" rel="nofollow noreferrer">a third-party CFC</a></li>
  </ul>
  <p>Nothing seems to work.</p>