[posted+mailed due to the late reply, sorry] [EMAIL PROTECTED] wrote:
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.
I'm not sure I see the point of this, because if you trust the site then you can just tell Mozilla to not ask about that cert again, but anyway...
The release notes for Firefox 1.5 suggest that this might be possible by adding an nsIBadCertListener that handles the unknown issuer notification.
Overriding the bad cert listener globally always worked. You just have to register your component using the right contract ID, namely "@mozilla.org/nsBadCertListener;1". To forward other calls to the real implementation, you can get it by CID rather than contract ID.
_______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto