title: Why am I obtaining this ERR_CERT_AUTHORITY_INVALID error calling an HTTPS API using a self signed certificate from an Angular service?
body: <p>I have the following problem trying to call an external REST <strong>HTTPS</strong> API from an Angular service:</p>
  
  <p>I have this Angular service:</p>
  
  <pre><code>@Injectable()
  export class MailDetailProtocolloService {
  
      private protocolloAooApiUrl = 'https://myservercom:443/my_project/api/GetDeparmentsList';  
  
      constructor(
          private http: HttpClient
      )
      {
      }
  
      /** GET AOO List chiamando un'API esterna */
  
      getAooList(): Observable&lt;Aoo[]&gt; {
          return this.http.get&lt;Aoo[]&gt;(this.protocolloAooApiUrl)
      }
  
  }
  </code></pre>
  
  <p>The problem is that this API use a <strong>self signed certificate</strong> and calling it I obtain this error message in the console:</p>
  
  <pre><code>GET https://myservercom:443/my_project/api/GetDeparmentsList net::ERR_CERT_AUTHORITY_INVALID
  </code></pre>
  
  <p>Why? How can I fix it and call it using this self signed certificate?</p>