Reply to thread

Thanks for @ing me about that.


I also got an idea about how to enable SSL (https) with development servers on local intranets (for macOS and BSD distros).

XF 2.2 - Sign your localhost dev server to make it https-capable. | XenForo community


However, this utilizes the macOS built-in apache.

(I tried the same httpd config setup with homebrew apache2 and it simply doesn't work.)


Using macOS built-in apache means that every apache module has to be code-signed (even if using local certs made without paying a buck).

I verified that this instructive article can help users sign their homebrew PHP apache module (libphp.so for PHP 8.x):

How to future proof your apache modules in macOS by signing them with your own certificate authority (phusion.nl)

Once succeeded, one can always use this bash command to redo the codesign everytime homebrew updates the PHP:

(Please modify the "CERT COMPANY NAME" and "?.?.?" to the actual values used in your case prior to executing this command.)

[CODE]codesign -s "CERT COMPANY NAME" --keychain ~/Library/Keychains/login.keychain-db /usr/local/Cellar/php/?.?.?/lib/httpd/modules/libphp.so

[/CODE]

Here's the case on my side. You see no warning signs on the HTTPS lock icon (without having to read the Chinese UI texts).

[ATTACH=full]246456[/ATTACH]

[ATTACH=full]246457[/ATTACH]


FYI.


Back
Top Bottom