Hello!
Does anyone maintain local virtual servers with local domain names and SSL security? If so please read on.
I use OPENSSL@3 installed by Homebrew in a MacOS Monterey environment with Xcode working in the background to create a series of keys and certificates (see below) so that I can open my local sites with the https:// prefix. For several days, sometimes a week, or even more everything works fine. I can type in addresses such as localhost/index.html.en, ali.ourseventh.local, etc. in any browser window (Firefox, Safari, Chrome, etc.), and after an initial browser objection, my local servers open as if they were labeled with the .org, .net., .com extensions on the WAN. This can go on for days, with daily reboots. And then, out of nowhere, I wake up one morning, start my computer, and discover that I can no longer access my locally installed virtually hosted websites. As it takes many, many minutes to recreate and reinstall all of my certificates, and I never no when it is going to happen, it can become extremely frustrating -- especially when I am very busy.
In crude outline things work as follows:
- In the folder /usr/local/etc/openssl@3/certs/ I create a number of files with the following names and extensions
localhost.crt localhost.csr localhost.key reg.cnf
myCA.pem myCA.key
- I save one of the above certificates in my keychain.
- Enter the command " brew services restart httpd " in terminal
- Open any browser and everything works fine, and voilà! Everything works fine.
Can you offer any suggestions as to what is interfering and how to correct for it?
Roddy