On Dec 7, 2:21 am, Stefan Jordanov <stefanste...@gmail.com> wrote: > Hello, > > Thank ypu for your answers. I am traying to get the certificate from a > signed xml file. I have a xslt transformation attached to the signed > xml. I would like to have a link on the transformed html file. Whe > someone click on the link I would like to popup the Firefox > certificate viewer. > > Again thank you all.
Hello, List most UI in Firefox, the certificate window is an XUL Chrome window that can be invoked from JavaScript code, e.g. in an extension. The URI of the certificate chrome window is: chrome://pippki/content/certViewer.xul You can create a Firefox extension that obtains the certificate (from your XML encoding) and then displays it by creating an instance of the certificate window and populating the relevant fields. In other words, when the user clicks on the certificate link, you probably want an extension that intercepts the response containing the XML-encoded certificate. Alternatively, the extension may be able to intercept the link activation, and request the URL itself. After you obtain the XML-encoded certificate, you need to parse it to obtain the certificate data, and then open an instance of the certificate window populated with the certificate data. There is documentation online on how to develop Firefox extensions that intercept HTTP responses and extensions that can invoke an XUL chrome window. I'm not really familiar with parsing XML inside an extension, so I can't help much there. Best Regards, Peter Djalaliev -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto