SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking

How do I disable fcgi with nginx?

I just checked, it exists.

But is it working?

A question for an nginx forum.

2 Likes

How do I check that?

Sounds like a question for an nginx forum.

2 Likes

You could try adding the below location right below the location / shown above and just before your location for php/fastcgi

location /test4 {
   return 418;
}

Restart nginx and we can try connecting with

curl -i https://www.iskillihikayeler.net/test4

It should get a 418 response instead of 500. It would help narrow the problem

3 Likes

I indeed got back 418. Does that mean the problem is in / block?

Yes, it shows the cert config for that domain is working normally. The problem is requests using URI for a .php fail with a 500.

Something looks wrong with php and/or fastcgi generally and nothing related to Let's Encrypt certs.

3 Likes

Weird. I commented out fastcgi_pass line and when I refreshed, the contents of index.php was downloaded with the extension .dms.

1 Like

Change the entire location:

1 Like

If you mean that line should be in the .php$ location, it already is.

I mean [as a test] change that location to something else:
location ~ \.php$ {
location ~ \.xxx$ {

2 Likes

I did, now when I do curl, I get the php file but on the browser I get whitescreen.

I would put pack that php location.
And also add a location to handle the ACME challenge requests in the HTTP vhost:
[something simple for testing, like below]

location /.well-known/acme-challege/ {
    root /some/new/unique/ACME/path; # <<< you need to create this new path
    error_log /var/log/nginx/ACME-error.log;
    access_log /var/log/nginx/ACME-access.log;
}
2 Likes

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