RES: Generating rsakey using openssl as lib

2012-10-18 Thread Leonardo Laface de Almeida
>Exactly! Welcome to the club. A good number of the products one trials or >purchases over the years install their own copy of the OpenSSL DLLs >*somewhere*. Use the Windows Start search function and key in ssleay32.dll >and/or libeay32.dll and see how many hits you get! You could start by >uninsta

RES: Generating rsakey using openssl as lib

2012-10-18 Thread Leonardo Laface de Almeida
Hi, >That doesn't prove it's finding the *correct* openssl. Most (and >usual) kinds of SSL connections work on older versions. Do you get >TLSv1.1 or TLSv1.2 connections, or at least request them properly >even if your server doesn't agree? That would prove version 1.0.1. My lib is server for

RES: Generating rsakey using openssl as lib

2012-10-16 Thread Leonardo Laface de Almeida
Hi, Dave. The answers are bellow. >> I was following the main function in genpkey.c file and >> following the same >> sequence for generating key pair. I've got some executing >> erros that took me >> some hours to get it. I still have the problem and I think it >> might be some >> errors in

RES: Generating rsakey using openssl as lib

2012-10-15 Thread Leonardo Laface de Almeida
Hi all, Just if anybody needs it, this is working: RSA *rsa = NULL; const EVP_CIPHER *enc=NULL; unsigned long f4=RSA_F4; char outfile[20]; char passout[10]; BIO *bio = NULL; int num; num = 1024; memcpy(&passout[0],"teste",5); passout[5] = '\0'; memcpy(&ou

RES: Generating rsakey using openssl as lib

2012-10-15 Thread Leonardo Laface de Almeida
Thanks for reply, Dave. I was trying to understand the functions EVP_* last week, and your suggestion is pretty usefull because now I know it's possible make it work. I was following the main function in genpkey.c file and following the same sequence for generating key pair. I've got some execut