Hello, I know that this theme discussed a lot.
I have a code: char *passwd = "123456"; FILE F1 = fopen("key.pem", "wb"); PEM_write_RSAPrivateKey(F1, rsa, EVP_des_cbc(), NULL, 0, NULL, passwd); fclose(F1); ..... FILE F2 = fopen("key.pem", "rb"); RSA *rsa_2 = RSA_new(); rsa_2 = PEM_read_RSAPrivateKey(F1, NULL, NULL, passwd); and after that rsa2 = NULL, why? Sorry, but I can't find answer for my question. Thanks, Alexander ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]