[Project_owners] nsIBadCertListener from a Javascript addon

massey massey at stlouis-shopper.com
Tue May 30 08:45:02 EDT 2006


Tyler Close wrote:

> Hi all,
>
> I develop the Petname Tool
> <https://addons.mozilla.org/extensions/moreinfo.php?id=957>.
>
> I want to extend the Petname Tool to provide better usability for
> sites that use self-signed certificates. In particular, I want to
> prevent the "unknown issuer" dialog from being shown for sites that
> the user has already assigned a petname to. The release notes for
> Firefox 1.5 suggest that this might be possible by adding an
> nsIBadCertListener that handles the unknown issuer notification.
> Unfortunately, I haven't found any examples for using this interface
> and an entire morning of guessing and trying things hasn't gotten me
> anywhere. Can anyone provide some example code, or point me to someone
> who can answer specific questions about using the interface from a
> Javascript addon?
>
http://lxr.mozilla.org/mozilla1.8.0/source/toolkit/mozapps/update/src/nsUpdateService.js.in#1610
- and -
http://lxr.mozilla.org/mozilla1.8.0/search?string=nsIBadCertListener

might help

Jim

> Thanks,
> Tyler
>


More information about the Project_owners mailing list