A
A
Alexander Sobolev2018-08-17 11:09:35
Digital certificates
Alexander Sobolev, 2018-08-17 11:09:35

ERR_CERT_AUTHORITY_INVALID. How to get around?

On post ajax request, the console outputs

Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

As far as I understand, this error occurs due to incorrect SSL certificate.
If you go "from the browser" and "continue anyway" - then everything works, but only I know this thing at the development stage. If the user will have the same in the future, you yourself understand that nothing will work as it should.
Is it possible to "bypass" this story with a script, code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2018-08-17
@CityCat4

step 1 Add the publisher's certificate to the list of trusted CAs.
p. 2 If the certificate is self-signed - create a CA and issue a certificate in it, then see p. 1 :)
You can buy a certificate
You can try to get it on LE
You can give the user instructions on how to continue working :)
It all depends on how ready you are spend (time, money, etc.). There is no way to "bypass" here - all this is done by the user. It connects to a resource, obtains its certificate. Checks the certificate for validity - checks include the fact that the certificate must have been issued by a CA known to it as the root. If this is not the case, the certificate is not trusted and ERR_CERT_AUTHORITY_INVALID just occurs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question