tstorch / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

SSL connectivity issue #298

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

I am running embedded mongoose (2.8) webserver running in Linux centos. 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.

> What version of the product are you using? On what operating system?

Mongoose server running on Linux, client Windows.

Please let us know, whether upgrading mongoose will fix this issue or any idea 
to fix this issue. Also, could u please confirm whether it is related to 
mongoose or my code.

As a additional note, the ssl certificate file is a valid one. I have created a 
new ssl certificate with 1 year expiry and tried it too.

thanks in Advance,

Original issue reported on code.google.com by as...@vembu.com on 24 Nov 2011 at 2:12

GoogleCodeExporter commented 9 years ago
Additionally, as a note.. I have followed the instruction in the following link 
to create certificate files.. 

http://www.akadia.com/services/ssh_test_certificate.html

Original comment by as...@vembu.com on 24 Nov 2011 at 2:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Once after restarted my server exe, this wont wont occur again upto yeserday. 
But now the issue again occurred. 

In libcurl, I received the error: CURLE_SSL_CONNECT_ERROR
If try to access via firefox browser, I received the following error:
         SSL peer reports incorrect Message Authentication Code.
         (Error code: ssl_error_bad_mac_alert)

Now, I have restared my server exe, and the issue gone. But, I want a permanent 
solution.

Could anyone update me, whether it relates to our mongoose code in server or 
anything I need to handle it in SSL certificate/connection?

Awaiting for your update.

Thanks,

Original comment by as...@vembu.com on 16 Mar 2012 at 7:46

GoogleCodeExporter commented 9 years ago
No idea what happened.
I haven't seen anything like that though.
Please let me know if you have more info.

Original comment by valenok on 22 Sep 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Previously, I've set to load libssl from system (dynamic). I believe, this 
issue is due to the old libssl & libcrypto packages in the system. Once I have 
statically linked the recent openssl packages , this issue wont occur again.

Thanks,

Original comment by as...@vembu.com on 25 Sep 2012 at 7:12