跨浏览器 XmlDsig
我正在构建一个网站,用户必须对 xml 收据进行数字签名以确认他收到了包裹。我目前正在 IE 中使用自定义 ActiveX 控件来执行此操作。我想知道我是否可以使用/为其他浏览器完成同样的事情。有可能吗?
I am building a web site where the user has to digitally sign a xml reciept to confirm that he recieved the package. I am currently doing this using a custom ActiveX control in IE. I was wondering if I could accomplish the same thing with/for other browsers. Is it even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
遗憾的是,没有简单且免费的方法可以在 Web 浏览器中对 XML 文档进行签名。我们在 Internet Explorer 和 Firefox 中使用来自 Lizard Labs 的 XSign 在客户端对 XML 文档进行签名。该组件足够好,符合 W3C 标准,稳定且易于使用和安装(不需要额外的库和 SDK)。 Windows Mobile 版本也可用,但我没有使用经验。您可以下载并尝试演示版本。
Unfortunately there is no simple and free method for signing XML docs in web browser. We use XSign from Lizard Labs in Internet Explorer and Firefox for signing XML documents on client side. The component is good enough, W3C compliant, stable and easy to use and install (doesn't require additional libraries and SDK). The version for Windows Mobile is also available but I don't have experience with it. You can download and try demo version.
进行跨浏览器 XML-DSig 签名需要 Active/X(只能在 MSIE 中运行)的替代技术,例如 Java 小程序。
我们 isigma 开发了自己的基于小程序的解决方案,并已成功在 MSIE、Firefox、Chrome 和适用于 Windows 的 Opera,以及适用于 MAC 和 Linux 的 Firefox(我们在 Ubuntu 上进行了测试) - 可能还有 Safari,但我无法确认这一点。有几种基于小程序的开源和商业解决方案将覆盖比纯 Active/X 解决方案更广泛的安装基础。
Doing cross-browser XML-DSig signature requires an alternative technology to Active/X (which will only run in MSIE) e.g. a Java applet.
We at isigma have developed our own applet-based solution, which we have successfully run on MSIE, Firefox, Chrome and Opera for Windows, plus also on Firefox for MAC and Linux (we tested on Ubuntu) - and probably Safari as well but I can't confirm this. There are several open-source and commercial applet-based solutions that will cover a much wider installed base than a pure Active/X solution.
这个问题有点老了,但我最近发现了一个值得尝试的替代方案:
http://www.openoces.org/opensign/
它使用 Java Applet 并以LGPL 许可证。
This question is a little old, but I found recently a alternative that is worth trying:
http://www.openoces.org/opensign/
It uses a Java Applet and is released in a LGPL license.
尝试使用 XML Signature Java Applet 在浏览器中进行 XML 签名。它适用于 Windows 和 Linux 上所有支持 Java 的浏览器,包括 Internet Explorer、Firefox、Chrome 等。
Try XML Signature Java Applet for XML signatures in browsers. It works with all browsers that support Java on Windows and Linux, including Internet Explorer, Firefox, Chrome, etc.
我刚刚发布了一个旨在实现这一目标的库,请看一下: https://github.com/PeculiarVentures/xadesjs
I just published a library that aims to make this possible, take a look: https://github.com/PeculiarVentures/xadesjs