I'm developing a bat detector and I've set up the Raspberry Pi to operate its own Apache Web server on its own access point. The idea is that client devices can then connect to the access point to access the detector's features.
However, since the web server is running on http certain browsers are blocking some javascript code e.g. geolocation.
Things tried so far:
- When I looked into LetsEncrypt I thought I could spoof a DNS entry in the
/etc/hostsfile to prove ownership of a domain and have a certificate created for that, however, this is not the case. - I've setup self-signed SSL certificates but these are not trusted by devices which connect to the Pi.
There is a similar question at https://www.raspberrypi.org/forums/viewtopic.php?t=195822 however one of its solutions, getting a certificate for a domain that I have registered somewhere else, will not work for me since I don't have any domains.
I was wondering since the Pis is an access point can I spoof a DNS entry of a certificate authority to get a certificate to work?
Are there any ways to give an internal web server operating on the access point is own SSL certificate which connected devices will trust?
I'm at a loss of how to deal with this. I'd prefer to have an SSL certificate over implementing workarounds in javascript for the blocked APIs. However, it looks like I may have to do that.