I am running Ubuntu, Python 3.6, Gunicorn + Flask with an SSL cert. I occasionally get an error message about an invalid SSL request.
[2020-08-28 13:48:33 -0400] [6347] [DEBUG] Error processing SSL request.
[2020-08-28 13:48:33 -0400] [6347] [DEBUG] Invalid request from ip=x.xx.xx.xx: [SSL: SSL_HANDSHAKE_FAILURE] ssl handshake failure (_ssl.c:2309)
[2020-08-28 13:48:33 -0400] [6347] [DEBUG] Failed to send error message.
I believe it may have to do with the disk, as it is a pretty severe bottleneck on this machine. Maybe it's unable to read the cert in time because of disk?
I set up Gunicorn with a standard SSL setup:
keyfile = 'keys/x.key'
certfile = 'keys/x.pem'
ca_certs = 'keys/x2.pem'