Aditya Ivaturi wrote:
If you know that it is a server cert, you can also use the
'nsNSSCertificateDB::ImportServerCertificate() method
(http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/sr...
).
You have to convert base64 data to DER format before using this method.


I have solved my current issue, but out of curiosity - I thought you
are not supposed to write your custom tools against the NSS source.
See this post for reference 
http://groups.google.com/group/mozilla.dev.builds/msg/d34889514dc685c3.
Apparently XPCOM was the only public way of accessing internal NSS
operations. Am I wrong? Can you elaborate on your suggestion? Thanks.
Yes, I agree that XPCOM API is the way to access the internal of PSM as well as NSS.
Here is the link for corresponding XPCOM API which the C++ code implements:
http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/nsIX509CertDB.idl#183
--
Subrata

--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to