Through a long convoluted series of events something that was working is no longer working. Another group merged in some stuff to our application. Originally, I thought they had munged the code merge. However, they removed the changes to this area and I cannot find anything else that happened. One version of this code has gone missing. But, it was supposedly formatting and comments only.
I generate a key pair in another area but now when the code tries to load the private key there is an error. 24449:error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported encryption:pem_lib.c:481: The code (error handling etc removed for simplicity) that generates this is: BIO *key = null; EVP_PKEY *pkey = NULL; RSA *rsa = NULL; key = BIO_new_file(keyfile, "rb"); rsa = PEM_read_bio_RSAPrivateKey(key, NULL, 0, rsa_pass()); I tried breaking out the loading of the key with: pkey = PEM_read_bio_PrivateKey(key, NULL, 0, rsa_pass()); rsa = EVP_PKEY_get1_RSA(key, NULL, 0, rsa_pass(); However, in the second case it fails on the PEM call and never gets to the RSA call. I have error checking at every step and have visually inspected the private key file. Does any one have any idea what might cause this error to occur? Thanks -- ============================================================================== John T. Cox e-mail [EMAIL PROTECTED] www http://members.iglou.com/vampire ==============================================================================