Hello,
I’m testing the Zabbix JavaScript browser item with a Selenium Chrome container (standalone) to navigate pages with self-signed certificates (e.g., https://self-signed.badssl.com/).
Situation:
Also while using built in template for Web monitoring, there are net::ERR_CERT_AUTHORITY_INVALID errors (even for internal, not publicly used CAs).
Can you recommend some functional solution for using the Web Browser items for not trusted (self signed certs) or certs signed by internal CA.
Thanks in advance.
I’m testing the Zabbix JavaScript browser item with a Selenium Chrome container (standalone) to navigate pages with self-signed certificates (e.g., https://self-signed.badssl.com/).
Situation:
- I tried setting the container environment variable SE_NODE_CHROME_ARGS=--ignore-certificate-errors to allow insecure certificates.
- After restarting the container, the Selenium log shows no evidence that the Chrome argument is applied.
- Inspecting a new session via the WebDriver API shows acceptInsecureCerts: false.
- Attempts to navigate to a self-signed HTTPS page fail or return empty results in the Zabbix browser script.
- Modify the container startup script to append --ignore-certificate-errors to Chrome options. = does not work for me.
- Set acceptInsecureCerts: true in the Zabbix JavaScript browser item using Browser.chromeOptions() when creating the session. = does not work for me.
Code:
var options = Browser.chromeOptions();
options.acceptInsecureCerts = true;
var browser = new Browser(options);
browser.navigate("https://self-signed.badssl.com/");
var element = browser.findElement("#content");
return element.getText();
Can you recommend some functional solution for using the Web Browser items for not trusted (self signed certs) or certs signed by internal CA.
Thanks in advance.