Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

net::ERR_CERT_AUTHORITY_INVALID when trying to locally call to API

I have an AngularJS served at http://localhost:4200 and an Apache server api located at https://localhost. Both of these separately work just fine.

But when trying to request from my AngularJS app which is sitting in a non-SSL protocol and on a different port to my API sitting on SSL protocol and on a different port, I get this error net::ERR_CERT_AUTHORITY_INVALID on my Chrome devTools network tab.

Do I need to change my SSL configuration? Should I enable or disable an option in Chrome? Should I add a SSL certificate?

like image 535
Imri Barr Avatar asked Feb 11 '18 22:02

Imri Barr


People also ask

How do I check a certificate?

Android (v.Click the padlock icon next to the URL. Then click the "Details" link. 2. From here you can see some more information about the certificate and encrypted connection, including the issuing CA and some of the cipher, protocol, and algorithm information.


1 Answers

The problem was resolved by going straight to the SSL endpoint, then chrome alerts that this resource is not secured. Clicking on "Proceed" will resolve the problem when trying to request for that resource again.

like image 171
Imri Barr Avatar answered Sep 23 '22 07:09

Imri Barr