Authenticated Origin Pulls: Bad handshake (wrong curve)

I have been using Authenticated Origin Pulls for months without any issue but it stopped working when I upgraded my server. I think the upgrade to OpenSSL 1.1.1a triggered it. Basically, in my Nginx vhost, I have the following:
ssl_client_certificate /etc/nginx/certs/Cloudflare.crt;
ssl_verify_client on;
with Cloudflare.crt being the file available here:
Now, when I try to visit my websites with those 2 lines, I’m getting Error 525: SSL handshake failed
On the server side, I have the following line in the logs:
[crit] 26129#26129: *1 SSL_do_handshake() failed (SSL: error:1414D17A:SSL routines:tls12_check_peer_sigalg:wrong curve) while SSL handshaking, client:, server:
I think something changed in the way OpenSSL verifies certificate and that breaks my configuration.

wrong curve

would make me think something is wrong about the cipher configuration.

Have you already tried playing with

1 Like

My configuration was:
ssl_ecdh_curve prime256v1;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

Changing ssl_ecdh_curve to prime256v1:secp384r1 or auto does not resolve the issue. I found this but the cipher line was not working. I tried to use the other lines with my current ciphers with no success.

Thats a case for a support ticket then and/or @cloonan/@cs-cf

I emailed the support and will update the topic when they reply. I am almost certain this has to do with OpenSSL 1.1.1 since the exact same configuration used to work with previous versions. Surely I am not the only one affected.

Thanks anyway!

There is a good chance it is because of the update. I’d check what has changed between these two versions and based on that try to narrow down what the reason in different behaviour is.

Additionally to contacting Cloudflare you might also want to ask in the OpenSSL mailing lists.

1 Like

I agree with that, but I don’t see any history on the error :slightly_frowning_face: . I do see your ticket and have added myself and some details to it.

This topic was automatically closed after 30 days. New replies are no longer allowed.