Clear ssl client certificate state from javascript in firefox 33.0.2 (removed Proprietary window.crypto)

天涯浪子 提交于 2019-12-04 10:31:19

问题


I'm looking for a way to clear the SSL client certificate cache in Firefox as a kind of "log out" functionality so that the server does not recognize me anymore via the client certificate the next time I connect to it. The solution from clear-ssl-client-certificate-state-from-javascript

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

does not work anymore in the current version of Firefox.

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

How can I do this in the current Firefox version?


回答1:


You can enable window.crypto by setting

dom.webcrypto.enabled = true

in about:config.

However there is no out of box replacement for FF 33.
It seems like Mozilla rolled it back in FF34, so it should be available there again.

EDIT: There is an replacement: http://www.w3.org/TR/WebCryptoAPI/




回答2:


There is not an official solution for FF & Chrome. for a unofficial solution see: Web Crypto API — An Authentication of Data and People in SSL



来源:https://stackoverflow.com/questions/26855289/clear-ssl-client-certificate-state-from-javascript-in-firefox-33-0-2-removed-pr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!