Certificate: Secure localhost does not work after installing Homebrew, help

Learning to code here …

This is the link I used to install Apache, php and MySQL using homebrew:

https://help.macstadium.com/articles/how-to-install-apache-mysql-and-php-using-homebrew-on-macos

http: // localhost works but what does not work is
https: // localhost
neither
https: // localhost: 8443
which is where brew said it would be

I know that Brew is not going to set my keys, but I thought he was going to help me with some information.

It provided information about the ssl root folder but did not give me instructions on how to install my keys.

Basically, how do I install my certificates?
I tried Google but I could not find a good source

Thanks in advance