Being a beginner with NSS, I need help :-(

I am trying to generate a RSA pair of keys with this code:

    NSS_Init("./rsa.db");
    SECKEYPublicKey*rsaPbKey=NULL;
 
SECKEYPrivateKey*rsaPrKey=SECKEY_CreateRSAPrivateKey(1024,&rsaPbKey,NULL);
    ...
    NSS_Shutdown();

But all seems to be wrong, rsaPrKey (and its partner) are always NULL.

What is wrong?



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

Reply via email to