ignore CERT_AUTHORITY_INVALID error on mitm attack

405 Views Asked by At

i am making a mitm attack using proxy. The mitm works fine but the problem is chrome detects it. therefore, i have changed the code so it installs the certificate every time you enter a new website. However, the chrome steel says that the certificate authority is invalid. The error code chrome prints:

enter image description here

I used the following line to install the certificate:

powershell -c Import-Certificate -FilePath '{path}' -CertStoreLocation Cert:\LocalMachine\Root

I tryed to install the certificate to chrome manually as well but nothing changed.

I am searching for a way to either install the certificate proparlly or change the browser's sttings so it will ignore the error and let me in to the site. i have searched this on google but i couldn't find a wat to do so.

0

There are 0 best solutions below