fix: don't crash on invalid certs (#21976)
fix: don't crash on invalid certs (#21976)


gerhardberger/electron,electron/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,electron/electron,gerhardberger/electron,electron/electron,seanchas116/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,electron/electron,electron/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,electron/electron,seanchas116/electron,bpasero/electron,electron/electron,bpasero/electron,gerhardberger/electron,seanchas116/electron,bpasero/electron,gerhardberger/electron