Please help...

I was trying to read RSA private key that was written with encryption.
error occured.  The error is:

11002:error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported
encryption:pem_lib.c:506:

a clean up version of the code segment is as follows:

 FILE * fp;
 fp = fopen("output/rsa.private.key","w");
 char * password = "password";
 PEM_write_RSAPrivateKey(fp,rsa,EVP_des_ede3_cbc(),NULL,0,NULL,password)

;
.......

  fp = fopen("output/rsa.private.key","r");

.......
 pRsa = PEM_read_RSAPrivateKey(fp,NULL,NULL,password);
 if(pRsa == NULL)
 {
  ERR_print_errors(stderr);
 }
...

Thanks,

Jason



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to