I am writing an xulrunner application, which would take a website's
address, download the cert & import it in to the current firefox
profile database. This is my first xulrunner application & as such
there are few things I am confused about. So please bear with me.

I am trying to use the XPCOM APIs 
http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/
& seems like nsIX509CertDB2.addCertFromBase64() (http://
mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/
nsIX509CertDB2.idl) might be the right function call to use. But I am
not sure about the second parameter for that method. The doc says:

 * @param aTrust decoded by CERT_DecodeTrustString. 3 comma separated
characters,
                indicating SSL, Email, and Obj signing trust

What are these 3 comma separated characters and where can I find more
info about them? Also, does this method add the certificate to the
database of the current firefox profile (I am using firefox.exe -app
to launch my app)?
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to