title: Curl:How to handle NSS error -8156?
body: <p>I have secure nifi in which I  have to use  rest  api, while  invoking  get  request of  processor like this:<code>https://server_ip/nifi-api/processors/015d1364-f372-1e67-e201-a15d0erte56t</code>.
  But, I got a certificate error.  So, I decided to check is it possible to connect server from nifi, - I have used a CURL like this:</p>
  
  <pre><code>curl --verbose https://server_ip/nifi-api/processors/015d1364-f372-1e67-e201-a15d0erte56t
  </code></pre>
  
  <p>Answer is:</p>
  
  <pre><code>Initializing NSS with certpath: sql:/etc/pki/nssdb
   *   CAfile: /etc/pki/tls/certs/ca-bundle.crt   CApath: none
   * Issuer certificate is invalid: 
   * NSS error -8156
   * Closing connection #0
   * Peer certificate cannot be authenticated with known CA certificates 
  curl: (60) Peer certificate cannot be authenticated with known CA
  </code></pre>
  
  <p><strong>I   want  to know  if  there  is  any  way  I can get rid  of  this  error without changing CA certificate?</strong></p>
  
  <p>Any advice  will  be  helpful.</p>