I have several virtual servers on my iMac whose web pages I access using the https protocol. The document folder for these sites is located in the /User/[username]/Sites folder that I created within the MacOS 11.4 environment.
My goal is to access these servers using the same protocol from my iPhone and iPads as a means to test the robustness of my web applications across different Apple, and even other devices.
Is this not possible? If it is possible, what must I do?
Having understood the problem, could you suggest an effective work-around, if the proposed goal is not achievable?
Roddy
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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