Re: openssl s_server client verification

2013-04-02 Thread Peter Sandelin
On 22 March 2013 00:19, barcaroller wrote: > > When the openssl s_server program is unable to verify a client certificate, it prints out the following error message: > >verify error:num=21:unable to verify the first certificate >verify return:1 > > but then continues running as if nothing

Doubts regarding ssl3_write_pending - bad write retry

2013-04-02 Thread Wenbo Wei
Hi, I sometimes get the "SSL_R_BAD_WRITE_RETRY" error in using openssl-1.0.0. I found it is set in func "ssl3_write_pending", which is called by "do_ssl3_write". I have some doubts regarding this func. The functionality of "ssl3_write_pending" is to send the data saved in the s3->wbuf to the s

Re: Using libcrypto's RSA code

2013-04-02 Thread Matt Caswell
On 1 April 2013 23:30, Zach wrote: > RSA* x = PEM_read_bio_RSA_PUBKEY(bio, NULL, NULL, NULL); > Try using this instead: PEM_read_bio_PUBKEY Matt

Re: how to STORE encrypted string in database

2013-04-02 Thread Satyapraksh Panigrahi
Base64 never fails for any binary data. Something's wrong in your steps. As far as I understand you are using Qt, right? In Qt you have direct methods in QByteArray class for converting to Base64 String and retrieving back from it. On Mon, Apr 1, 2013 at 4:12 PM, Jevin Sonut wrote: > hi, > > i

Re: Using libcrypto's RSA code

2013-04-02 Thread Jakob Bohm
On 02-04-2013 00:30, Zach wrote: I've been reading through the OpenSSL documentation, but I must be missing something... I have a public key (base64 encoded) which looks something like this: MIICIjANBgkqhkiG9w0BAQEFA..U8CAwEAAQ== This is in a char buffer. I've tried this with/without the wr