I wanted to work on a PHP project and as usual I start MAMP to boot up the test server. But instead of my page I got an error message.
First, I started to investigate on the MAMP software, I change the ports, I tried changing the location of the root folder, it didn't change anything. Still that error:
"The connection of this website is not secured - ERR_SSL_PROTOCOL_ERROR".
I switched of browser first Edge and then Safari, nothing changed. I looked up on Google the error and as it would seem, it comes from an invalid certificate.
So, I tried forging one with openssl, I could't add the .pem file to the keychain tool, and I tried changing the configuration files http.conf
and httpd-vhosts.conf
to use the new certificate. It didn't work either. Finally, hopeless, I tried uninstalling MAMP and reinstall it and even tried XAMPP, still no more results.
I'm desperate if anyone had a solution, I would be infinitely grateful!
Edit: Here my httpd.conf file
<https://pastebin.com/SHJ8CdrA>
Edit 2: Here's the new httpd.conf
file
<https://pastebin.com/fdZe4RhU>
Edit 3: Here is my httpd-ssl.conf
<https://pastebin.com/RMPJbp6q>