'instaling certificates for mitm attack

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 comman name is invalid. The error code chrome prints: enter image description here

i couldn't get the problem because the common name is "google.com": enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source