Trying to set up nginx static content website over https with acme.ch and cloudflare.

Hi guys, I installed acme.sh script and created the certificates, restarted nginx, but when I am trying to access my site I get error SSL handshake failed error code 522 in the web browser. nginx error logs are empty, and in the access logs there is some weird text and I can't understand what this means. Here is what access logs looks like when i'm refreshing the web browser window. Suggestions?
185.191.225.130 - - [27/Nov/2024:11:22:25 +0300] "\x16\x03\x01\x014\x01\x00\x010\x03\x03 \xB6ci8SP\xB9\xDD\xA0C\xA7\xB2\xE3\x0E\x11\xCAhj@{\x1E[\x05[mT?\x02\xDD\x87A ]\x5C4|\xCB@\x95.\xCC?\xB1)2\x9F2\xE2s\xA2\xBBk\xCB c\xBB\xAD8\x14\x99B\xAD\x942\x00V\x13\x02\x13\x03\x13\x01\xC0,\xC00\xC0+\xC0/\xCC\xA9\xCC\xA8\x00\x9F\x00\x9E\xCC\xAA\xC0\xAF\xC0\xAD\xC0$\xC0(\xC0" 400 157 "-" "-"
[root@rhvmlxnet01 nginx]#
185.191.225.130 - - [27/Nov/2024:11:22:25 +0300] "\x16\x03\x01\x014\x01\x00\x010\x03\x03 \xB6ci8SP\xB9\xDD\xA0C\xA7\xB2\xE3\x0E\x11\xCAhj@{\x1E[\x05[mT?\x02\xDD\x87A ]\x5C4|\xCB@\x95.\xCC?\xB1)2\x9F2\xE2s\xA2\xBBk\xCB c\xBB\xAD8\x14\x99B\xAD\x942\x00V\x13\x02\x13\x03\x13\x01\xC0,\xC00\xC0+\xC0/\xCC\xA9\xCC\xA8\x00\x9F\x00\x9E\xCC\xAA\xC0\xAF\xC0\xAD\xC0$\xC0(\xC0" 400 157 "-" "-"
[root@rhvmlxnet01 nginx]#
3 Replies
Doc
Doc3mo ago
what is your tls encryption level set to? (flexible, strict, etc.)
Zybyr
ZybyrOP3mo ago
full in the SSL section on cloudflare the encryption level is set to FULL if this is what you are refering to? I recreated the certificates using cloudflare SSL origin server and its working now. thank you!
Doc
Doc3mo ago
no problem

Did you find this page helpful?