Just to add a note to my last question, I tried to use openssl.exe s_client -connect IP:PORT and it gives the following error message in that.
I am using a self signed certificate so this first line makes sense, but why its giving this SSL alert number 20. Not able to find anything useful for this. verify error:num=18:self signed certificate verify return:1 236:error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac:.\ssl\s3_pkt.c:1193:SSL alert number 20 236:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:.\ssl\s23_lib.c:177: // Harshvir On Tue, Apr 12, 2011 at 10:08 AM, Harshvir Sidhu <[email protected]> wrote: > Hi, > I am trying to write the server side code using OpenSSL. > I am getting the following error on SSL_Accept. > error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad > record mac > > I tried to google on this, everywhere they were mentioning that there > was some build error, which was fixed in 0.9.8 build, i am not sure about te > sub version, but i am using 1.0.0.a. I also tried using > SSL_CTX_check_private_key > after i set my server certificate and key, and its returning 1. > > > Any one any suggestions on this? > > Thanks. > > // Harshvir > >
