This instruction was executed on operating systems: Debian 10, Debian 9, Ubuntu 20.10, Ubuntu 20.04, Ubuntu 19.10. I hope this improved instruction helps you too. This time we will use the root certification authority (CA). And again I had to figure out how to solve this problem. Perhaps after the system update some changes occurred.
At some point, I again had errors in browsers: NET::ERR_CERT_AUTHORITY_INVALID (Google Chrome), MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT (Firefox). I already wrote an article on how to add a trusted self-signed SSL certificate to Apache on Debian/Ubuntu, but this solution does not always work. But the browser displays a notification that it does not trust the self-signed SSL certificate. I always use the HTTPS protocol for the local development environment. In this article I will explain how to add a trusted SSL certificate for the local development environment to the Apache server on the Debian/Ubuntu operating system. Adding a certification authority to the browser.Creating a root certification authority (CA).Adding a trusted SSL certificate for the local environment in Apache on Debian/Ubuntu (using root CA)