From: [EMAIL PROTECTED] On Behalf Of Nick van der Merwe Sent: Friday, 14 November, 2008 08:11
I can read a password protected private key file OK using the OpenSSL shell, but if I try and do it programmatically I just get a NULL key returned. If the private key is not password protected everything works 100%! <snip> The error text reported is as follows: 5244:error:0906B072:lib(9):func(107):reason(114):.\crypto\pem\pem_lib.c:481 If you had previously done SSL_load_error_strings you would have gotten the more useful: error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported encryption >From the FAQ: * Why do I get errors about unknown algorithms? This can happen under several circumstances such as reading in an encrypted private key or attempting to decrypt a PKCS#12 file. The cause is forgetting to load OpenSSL's table of algorithms with OpenSSL_add_all_algorithms(). See the manual page for more information.