[openssl-users] error making Private RSA
william estrada
MrUmunhum at CruzIO.com
Thu Mar 2 00:47:44 UTC 2017
Hello group,
I am attempting to create a Private RSA structure with the following code:
BIO*
PEM = BIO_new_mem_buf( Key, Key_Len );
if( Type == 1 )
PEM_write_bio_RSAPrivateKey( PEM, RSA, NULL, NULL, 0, NULL, NULL );
else
PEM_write_bio_RSAPublicKey( PEM, RSA );
if( RSA_check_key( RSA ) != 1 ) {
printf( RED "Make %s RSA Failed\n" OFF, Type==1?"Private":"Public" );
int Error = ERR_get_error();
char *MSG = ERR_error_string( Error, NULL);
printf( "%s\n", MSG ); }
and I get this error:
Make Private RSA Failed
error:2007507E:lib(32):func(117):reason(126)
Can anyone tell me what this error is and how to fix it?
--
William Estrada
Mt Umunhum, CA, USA, Earth
HTTP:// Mt-Umunhum-Wireless.net
Skype: MrUmunhum
More information about the openssl-users
mailing list