Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 398
alex Avatar asked Nov 11 '14 00:11

alex


People also ask

How do I clear clear SSL state?

Open the Start menu. Search for and open Internet Options. In the dialog box that appears, select the Content tab. Click Clear SSL State.

How do you refresh certificates in Firefox?

*Tools > Options > Advanced : Encryption: Certificates - View Certificates ----- Rename the file cert8. db to cert8. db. old in the Firefox Profile Folder to reset all root certificates.


2 Answers

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/

like image 169
Eun Avatar answered Oct 26 '22 22:10

Eun


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

like image 37
Ruhollah Delpak Avatar answered Oct 26 '22 21:10

Ruhollah Delpak