app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
//prompt for proceed dialog.
if (user says proceed) {
//remember this certificate for future.
callback(true);
} else {
callback(false);
}
}
这有效,但是只有一次,我想要将来的导入证书。