I am running embedded mongoose webserver in server side (Linux centos). In the client (Windows) I am using c++ with libcurl to post request to webserver.

It works successfully all the time. But now, I am facing ssl connectivity issue in client side. Without ssl, it works fine. If I restart the server, then even with ssl, it works for some amount of time. But after some time the same connection error occur.

libcurl error: CURLE_SSL_CONNECT_ERROR (35)
Actual Error: error: 140943FC: SSL routines: SSL3_READ_BYTES: sslv3 alert bad record mac.

Please any one let us what could be the issue and how to fix it..

Thanks in advance..

Member Avatar

from the commandline at the path of curl,

find . -exec grep 'sslv3 alert bad record mac' {} \; -print

I can't remember if the {} have to be escaped with \ or not like this: \{\}
-print will tell you which file has the error message - this lets you look at the code which caused it with vi or emacs (whichever is your favorite editor).

in the windows version of curl 7.19.7, I could find no such error message.