How to detect SSL errors using chrome extension?

327 views
Skip to first unread message

Prerit Datta

unread,
Nov 13, 2016, 10:15:29 PM11/13/16
to Chromium-Extensions-Announce
Dear all,

Sorry for cross posting it here (posted on stackoverflow with no luck). 

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

PhistucK

unread,
Nov 14, 2016, 2:13:39 AM11/14/16
to Prerit Datta, Chromium-Extensions-Announce
What does details.error contain in your case?


PhistucK

--
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.

Reply all
Reply to author
Forward
0 new messages