I am trying to generate a certificate request for an EC key from Firefox 
3.0.1 (downloaded from mozilla.org). A pop up (key generation?) appears 
briefly but quickly disappears. The Java error console contains the 
following message:

Error: uncaught exception: [Exception... "Component returned failure code: 
0x80004005 (NS_ERROR_FAILURE) [nsIDOMCrypto.generateCRMFRequest]"  nsresult: 
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: 
https://localhost.localdomain:9443/ca/ee/ca/profileSelect?profileId=caECUserCert
 
:: validate :: line 473"  data: no]

The page is executing a call to the generateCRMFRequest method. The call is:

              crmfObject = crypto.generateCRMFRequest(
                "CN=x",
                "regToken", "authenticator",  null,
                "setCRMFRequest();",
                256, "nistp256", "ec-dual-use");

Line 473 corresponds with the last line of the call. I have experimented 
with other values for the length (eg 1024, null) and for the name (null). I 
receive the same error in each case.

The call successfully generates rsa keys when the last line is: 1024, null, 
"rsa-dual-use"),

The web page performs server authentication using an EC certificate so the 
browser has some EC literacy. 


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

Reply via email to