Installer cert validity

The web installer generates a self-signed certificate with a ten year validity, but macOS Catalina limits certificate expiry dates to 825 days in the future. This means that it’s impossible to access the installer’s web interface from Chrome on macOS, and you get a scarier-than-usual warning in Safari and Firefox.

Is there any way to change the installer certificate validity period either when packaging, or from the command line when starting the installer?

I don’t believe the cert can currently be replaced. Here’s the relevant gravity bug: