Using HTTPS in development
- Catches bugs that only occur in a HTTPS environment (I'm looking at you, secure cookies...)
- teaches our tech officers about certificate infrastructure
- Looks cool 😎
Ideally, we would support/have instructions for both HTTP and HTTPS in development - this way, new developers could setup HTTP first and verify things work before moving on to the more complicated HTTPS setup.
I think that would make things too complicated, though.
Instead, I think we should
- setup the development
nginxconf files to use certificates/keys stored somewhere in this repository's tree (gitignored)
- for initial setup, have developers run a script which creates symlinks to the system
snakeoil certificate/key at the appropriate paths
- have developers overwrite the
snakeoil symlinks with actual certificates/keys using their local CA
todos
Using HTTPS in development
Ideally, we would support/have instructions for both HTTP and HTTPS in development - this way, new developers could setup HTTP first and verify things work before moving on to the more complicated HTTPS setup.
I think that would make things too complicated, though.
Instead, I think we should
nginxconffiles to use certificates/keys stored somewhere in this repository's tree (gitignored)snakeoilcertificate/key at the appropriate pathssnakeoilsymlinks with actual certificates/keys using their local CAtodos
guilds.durhack-dev.com)/etc/hostsin WSL & verifying usingdig/curlC:/Windows/System32/drivers/etc/hostsin Windows & verifying usingping.exe/curl.execasubtreesnakeoil