BrowserWindow doesn't show an https page unless the ignore-certificate-errors Chromium cmd switch is used


I’m working on a very simple Electron application to load up a secure website which asks for a certificate for login.
However, the application window is blank unless I use the ignore-certificate-errors command line switch for Chromium.
Is there a was to see why it doesn’t do anything without the switch?