by mode7 · 7y ago · 0 comments
A convenient solution in case you can control DNS at the local network level is to just get an ordinary certificate for a real domain (for example dev.mydomain.com) and have it resolve to that local IP.
Using your own CA is possible too, of course, but getting it installed on all the devices is a nuisance.
I’d prefer getting a separate certificate for local.domain.tld instead.
Please correct me if I have a misunderstanding.
How do you make it work if you are working offline, say in a plane ?
Re-routing the domain to the local machine (by editing /etc/hosts) should work just the same. A certificate from a trusted CA can be validated without an internet connection, they are part of the OS/Browser distribution.