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
Post
Replies
Boosts
Views
Activity
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
I have followed the instructions provided by etresoft at <https://discussions.apple.com/docs/DOC-250001766>. Although I am able to start up the Apache server and discover the file index.html.en in the /Library/Webserver/Documents folder using <http://localhost>, I am unable do to the same for my /User/username/Sites content. When I enter <http://localhost/~username>, I am told that I am forbidden.At first glance it appears to be a problem of permissions, but when I check the folder and file permission, everything appears to be in order. 755/644. I have noticed that the User/Owner combinations are different, but too appears normal. root/wheel for the /Library/Webserver/Documents folder and username/staff for the /User/username/Sites folder.What am I likely not doing that I should be doing. Or, alternatively, what have I done that is wrong?Roddyp.s. I submitted a ticket to Apple Developer Support, but after 24-hours I still have not received a response.