【问题标题】:Clear ssl client certificate state from javascript in firefox 33.0.2 (removed Proprietary window.crypto)从 firefox 33.0.2 中的 javascript 清除 ssl 客户端证书状态(删除专有 window.crypto)
【发布时间】:2014-11-11 00:02:53
【问题描述】:

我正在寻找一种方法来清除 Firefox 中的 SSL 客户端证书缓存,作为一种“注销”功能,以便服务器在我下次连接时不再通过客户端证书识别我。来自clear-ssl-client-certificate-state-from-javascript的解决方案

 if (window.crypto) window.crypto.logout();

在当前版本的 Firefox 中不再工作。

With firefox 33.0.2 the Proprietary window.crypto properties/functions are removed

如何在当前的 Firefox 版本中做到这一点?

【问题讨论】:

    标签: firefox caching ssl certificate client-certificates


    【解决方案1】:

    您可以通过设置启用window.crypto

    dom.webcrypto.enabled = true
    

    about:config.

    但是,FF 33 没有开箱即用的替代品。
    Mozilla 似乎在 FF34 中回滚了它,所以它应该会再次可用。

    编辑: 有一个替代品: http://www.w3.org/TR/WebCryptoAPI/

    【讨论】:

    • 如果您已经熟悉 WebCryptoAPI,我将不胜感激能实现所要求的代码 sn-p。谢谢!
    • 我在 w3 草稿中找不到这样的功能。
    • FF 47 中不存在此功能(about:config 中没有 dom.webcrypto)。另见bugzilla.mozilla.org/show_bug.cgi?id=1225487
    【解决方案2】:

    FF 和 Chrome 没有官方解决方案。如需非官方解决方案,请参阅:Web Crypto API — An Authentication of Data and People in SSL

    【讨论】:

      猜你喜欢
      • 2012-04-01
      • 1970-01-01
      • 2017-04-28
      • 2013-08-04
      • 1970-01-01
      • 2020-05-03
      • 2010-10-16
      • 2012-02-15
      • 2022-08-22
      相关资源
      最近更新 更多