Hey all!
I'm working on PWA development and the HTTPS requirement of them has been an issue throughout development this far, because I need to test on my phone over my WiFi. Usually localhost and equivalents are allowed for testing, but the thing is that once its left my device, that's not the case. So, as a result, the service worker will be deleted once the temporary cache is thrown away by the browser.
Sorry if that was a little long winded, TLDR:I need HTTPS to test my webapp on my phone over LAN, but cant due to PWA standards.
Anyways, the main issue is that the default Laragon certificate is only set up using 127.0.0.0 and localhost, ect, not your computers IP on your network. Although that's perfectly reasonable, because 1, I'm an edge-case, and 2, theres no way to really modify the auto.openssl.cnf file to incorporate that during install or whatever.
So that leads to my question I suppose. To get my PWA to properly install on my phone for testing I need to make a Root Certificate, and said root certificate needs to have 192.168.1.175 as the domain I guess. I tried doing this myself, with varying levels of success. I set up a CA on my computer following this guide, and set up a conf file with the following for DNS:
[alt_names]
DNS.1 = localhost
DNS.2 = 192.168.1.175
Doing this made a key and all, but when I tried to manually replace the config in Laragons files, (in etc/apache-2/sites-enabled/00-default.conf replacing the key file with mine), but couldn't get Laragon to accept it, and it just kept throwing errors, even after I put the SSL keys back to the defaults, so I just uninstalled/reinstalled.
If anyone knows how to do (or how to properly do) this, I'd appreciate any help!
PS I love Laragon, its probably the best web server I've ever worked with. Massive thanks to the developers for making it happen!