title: Angular self-signed certificate, proxy error
body: <p>My Angular app always worked correctly. I have a connection to my REST service and I set the url in my proxy.conf.json file:</p>
  
  <pre><code>{
      "/api/*": {
          "target": "http://myurl:myport",
          "secure": true,
          "logLevel": "debug"
      }
  }
  </code></pre>
  
  <p>I am now working from my house and the REST service has moved from the backend developer under https connection. I tried this new <code>https://mysafeurl:mynewport</code> under Postman and all works perfectly. But I tried to change the URL in my conf file and I see the following error. How can I solve the problem?</p>
  
  <p>Under Visual Studio Code console:</p>
  
  <blockquote>
    <p>Error occurred while trying to proxy request rest_service_name from localhost:4200 to <a href="https://newurl" rel="nofollow noreferrer">https://newurl</a> (EPROTO) (<a href="https://nodejs.org/api/errors.html#errors_common_system_errors" rel="nofollow noreferrer">https://nodejs.org/api/errors.html#errors_common_system_errors</a>)</p>
  </blockquote>
  
  <p>Under browser developer console:</p>
  
  <blockquote>
    <p>HttpErrorResponse {headers: HttpHeaders, status: 500, statusText: "Internal Server Error", url: </p>
  </blockquote>
  
  <h2>Edit</h2>
  
  <p>Error screen:</p>
  
  <p><a href="https://i.stack.imgur.com/g79P7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g79P7.png" alt="enter image description here"></a></p>