If you wonder how to get HTTPS for your local virtual hosts:

1. create a local CA

2. create a certificate using that local CA

3. Then you can add the CA in your trusted authorities (Firefox does need an extra step: either enable the "security.enterprise_roots.enabled" flag, either import the CA certificate manually in it).

Details at: https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb...

I found this script to manage your local CA:

https://github.com/FiloSottile/mkcert