Hello. I have generated a RSA key in PEM format (key.pem) and when i try to read the private key using function PEM_read_RSAPrivateKey(), this funtion returns a null value. I donīt know if i'm calling the function well because i donīt know the meaning of some parametres.
  I call the function like this:
       FILE *fp;
       RSA *privatekeys;
 
       fp = fopen ("key.pem", "rb");
       PEM_read_RSAPrivateKey(fp, &privatekey, NULL, NULL);
 
       What's wrong?
   
      Thanks,
          Oscar

Reply via email to