I'm trying to make a chrome extension that plays a specific sound whenever a page with invalid SSL certificate is loaded.
I know that chrome gives certain warnings likes: net::ERR_CERT_AUTHORITY_INVALID err_cert_date_invalid err_cert_common_name_invalid NET::ERR_CERT_REVOKED and so on...
Is there a way to detect it via coding using chrome extensions?
This solution linked here doesn't work for me
I tested it using a self-signed certificate on a dummy html page using Apache tomcat. My background page:
chrome.webRequest.onErrorOccurred.addListener(function(details) { if (details.error == "net::ERR_CERT_AUTHORITY_INVALID") { console.log("Error details:",details); } }, { urls: ['*://*/*'], types: ['xmlhttprequest'] });
An example of page with invalid certificate is: https://www.iad.gov/nietp/CAERequirements.cfm
Thank you all in advance
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/d03b6f79-7d73-48e5-8819-866dcadb05ac%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.