Hello people!

I'm trying to use the JavaScript API for Mozilla/Netscape PSM to 
generate a certificate request (PKCS#10), send it to a CA, and then 
install the issued certificate (PKCS#7) into the browser keystore.

I'm using the "crypto.generateCRMFRequest()" method to create the 
PKCS#10 and then the "crypto.importUserCertificates()" to try to 
install the PKCS#7 certificate into the browser keystore.

The problem is that the PKCS#10 that "generateCRMFRequest()" method 
generate fails to decode in the CA and I know that's not a problem 
of my CA because I've also tested that with other CA. But if I use 
the <KEYGEN> tag to create the PKCS#10 it works, despite that when 
I try to install the certificate issued by the CA using the 
"importUserCertificates()" method also fails returning the code: 
0x80004005 (NS_ERROR_FAILURE)...

I've done a lot of searchs about that and the "best" and in fact the 
only, API that I found is in:
  <http://docs.iplanet.com/docs/manuals/psm/14/cmcjavascriptapi.html>, 
if someone knows something better than that I would be please if you 
can send me the link.

I found a post from Hong Qiu (that seems to have changed his e-mail) 
in "netscape.public.mozilla.crypto" mailing-list and It seems is 
problem was the same!

If anyone knows something about that, please give me some help...

Thanks in advance,
Ricardo Barroso

Reply via email to