RES: OpenSSL and Network namespace

2013-07-18 Thread Leonardo Laface de Almeida
Hi, Herat. Take a look at fcntl() and setsockopt() functions. You may set the socket to nonblocking using them. I've also got blocking state using select() function, even setting it for unblocking before. I solved incrementing timeout. Leonardo De: owner-openssl-us...@openssl.org

Openssl versions compability

2013-01-23 Thread Leonardo Laface de Almeida
Hi, I'd like to know about it. I have a software developed in 1.0.0b version. I think it might be better to use some other newer release version, like 1.0.1c. Will I have any trouble doing this? I don't know if changes the answer, but it's for arm processor. Thanks, Leonardo

RES: Openssl versions compability

2013-01-23 Thread Leonardo Laface de Almeida
-Mensagem original- De: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] Em nome de Ken Goldman Enviada em: quarta-feira, 23 de janeiro de 2013 13:13 Para: openssl-users@openssl.org Assunto: Re: Openssl versions compability On 1/23/2013 9:51 AM, Jeffrey Walton

RE: RE: PEM_read_PrivateKey

2012-10-31 Thread Leonardo Laface de Almeida
On Tue, Oct 30, 2012, Leonardo Laface de Almeida wrote: Hi, The code for my project example is attached. The error code is as well. The error remains. For generating Key, the callback is called. For getting Private Key, the callback is not called. What's wrong here? I really appreciate

RES: PEM_read_PrivateKey

2012-10-30 Thread Leonardo Laface de Almeida
[mailto:owner-openssl-us...@openssl.org] Em nome de Dave Thompson Enviada em: segunda-feira, 29 de outubro de 2012 19:25 Para: openssl-users@openssl.org Assunto: RE: PEM_read_PrivateKey From: owner-openssl-us...@openssl.org On Behalf Of Leonardo Laface de Almeida Sent: Monday, 29 October, 2012 16:20

RES: PEM_read_PrivateKey

2012-10-30 Thread Leonardo Laface de Almeida
Hi, The code for my project example is attached. The error code is as well. The error remains. For generating Key, the callback is called. For getting Private Key, the callback is not called. What's wrong here? I really appreciate any help. Thanks. Leonardo attachment:

RES: PEM_read_PrivateKey

2012-10-29 Thread Leonardo Laface de Almeida
@Gerardo, I'm having a problem with this function and I will use your thread for some support. @All The problem I've got is quite simple. The callback I pass throught this function is not called. I inserted a breakpoint into cb and it's not called at all. I'm using OpenSSL 1.0.1c. I'm sure

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-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

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 openssl libs.

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

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';

Generating rsakey using openssl as lib

2012-10-11 Thread Leonardo Laface de Almeida
Hi all, I have an application which already establishes SSL Socket connection using OpenSSL as lib. Now, my application needs to able the user create a RSA key pair, sign documents and verify signatures. This it will be needed in some features of my application, managed by user for signing

RES: HTTPS connection hangs during SSL handshake

2012-09-11 Thread Leonardo Laface de Almeida
For any SSL connection, you have to assure that: 1- The cpu's can reach each other (the hostname test.mydomain.com must be also resolved). You may use ping, HTTP, FTP to check it out; 2- Certificates or CA chain from each endpoint must be inserted in the opposite side as trust cert; 3- The