Michael Shadle mike503 at
Wed Apr 1 14:15:21 MSD 2009

2009/4/1 Igor Sysoev <is at>:

> Thank you, beecrypt looks intresting, although its interface is different
> from OpenSSL/libmd's one.

I don't know if it would be a good thing for nginx to require
something additional like it.

I'd rather see it leverage the standard openssl :)

BTW, did you take a look at my SSL error? I cannot determine what the
problem is. The only idea that I seem to have at the moment is during
peak usage periods, the issue comes up.

I get this:

2009/03/26 01:11:00 [info] 6523#0: *665 SSL_do_handshake() failed
(SSL: error:140943FC SL routines SL3_READ_BYTES slv3 alert bad record
mac) while SSL handshaking, client:, server:
2009/03/26 01:11:00 [debug] 6523#0: *664 SSL handshake handler: 0
2009/03/26 01:11:00 [debug] 6523#0: *664 SSL_do_handshake: -1
2009/03/26 01:11:00 [info] 6523#0: *664 peer closed connection in SSL
handshake (104: Connection reset by peer) while SSL handshaking,
client:, server:

I can't find any workarounds on the net, it seems to be only with Firefox 3.x.

Is there a tuneable or anything that would increase SSL performance or
available resources (the server is not highly utilized which is what
is weird...) that nginx can do, or could this be an openssl bug? It
seems like I found in nginx you recently had added those return values
of the "bad record mac" to the code, but I don't know -why- that is
happening, and only during specific periods of time, which is why I
think it is load related...

I've already done the ssl_protocols SSLv3 TLSv1; and that's fixed my
other servers and even other sites on the same server. It's this one
specific site and I've regenerated the SSL cert/etc...

It does proxy to apache, that's the only difference...

        server {
                ssl on;
                ssl_certificate /etc/nginx/certs/;
                ssl_certificate_key /etc/nginx/certs/;
                ssl_protocols SSLv3 TLSv1;
                location / {
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For $remote_addr;
                        proxy_pass_header Expires;
                        proxy_pass_header Server;
                        proxy_buffering off;

Any help is appreciated.

More information about the nginx mailing list