Hi,
    How can i access the "Issuer" and "Issued to" of the selected
digital certificate in JavaScript in firefox?

For Internet Explorer, CAPICOM provides API to do this but for firefox
i'm not able to. I've tried using window.crypto.

Example Java Script code:
try {
        result = window.crypto.signText("Something to sign","ask");
        if(result == 'error:userCancel' || result ==
'error:internalError' || result == 'error:noMatchingCert'){
                // alert(" Result="+result+". Staying back. ");
                return null ;
        }
    }
catch(ex) { }

There's one way. if siging is successfull, result is a BASE64-encoded
string. It has a structure shown at
http://docs.sun.com/source/816-6152-10/sgntxt.htm. But, when i tried
to decode this base64 string to get "CN value of Subject" i'm not
getting proper strings. Is there a better way?

Is there a way i can access the "issued to" field in the digital
certificate selected thro window.crypto object or any other object.
(or)
Is there a plug-in for firefox similar to CAPICOM for Internet
Explorer.
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to