Подключение к одному сайту. После ввода значений логина и пароля при нажатии на кнопку «Войти» в интерфейсе отображается ошибка, приведенная ниже.
Secure Connection Failed
An error occurred during a connection to wgateway-fit.nj.adp.com. Peer’s certificate has an invalid signature. Error code: SEC_ERROR_BAD_SIGNATURE
Мы используем Selenium c #. Браузер Firefox 66
FirefoxOptions option = new FirefoxOptions();
//option.BrowserExecutableLocation = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe";
option.BrowserExecutableLocation = @"C:\Users\buskarna\AppData\Local\Mozilla Firefox\firefox.exe";
option.AcceptInsecureCertificates = true;
option.SetPreference("browser.helperApps.neverAsk.saveToDisk", "text/html;charset=iso-8859-1,application/dat,application/pdf,text/plain,text/csv,application/x-msexcel,application/excel,application/x-excel,application/octet-stream,application/download,text/x-csv");
option.SetPreference("browser.helperApps.neverAsk.openFile", "text/html;charset=iso-8859-1,application/dat,application/pdf,text/plain,text/csv,application/x-msexcel,application/excel,application/x-excel,application/octet-stream,application/download,text/x-csv");
option.SetPreference("browser.download.folderList", 2);
option.SetPreference("browser.download.dir", "C:\\Temp\\");
option.SetPreference("plugin.disable_full_page_plugin_for_types", "application/pdf,application/vnd.fdf");
option.SetPreference("browser.download.manager.alertOnEXEOpen", false);
option.SetPreference("browser.download.manager.useWindow", false);
option.SetPreference("browser.download.manager.showAlertOnComplete", false);
option.SetPreference("browser.download.manager.closeWhenDone", true);
option.SetPreference("browser.helperApps.alwaysAsk.force", false);
option.SetPreference("pdfjs.disabled", true);