Curl_errno = 60; curl_error In Webhook Facebook and N8N

Hello everyone.

I am trying to connect via webhook Facebook and N8N. But Facebook gives me the following error:

Could not validate URL. Callback verification failed with the following errors: curl_errno = 60; curl_error = SSL certificate problem: unable to get local issuer certificate; HTTP Status Code = 200; HTTP Message = Connection established

I have tried letsencrypt and Gogetssl but neither works for me. Same error. How can I fix this?

My ecosystem file:

module.exports = {
apps : [{
name : “n8n”,
env: {
N8N_BASIC_AUTH_ACTIVE:true,
N8N_BASIC_AUTH_USER:“user”,
N8N_BASIC_AUTH_PASSWORD:“pass”,
N8N_PROTOCOL: “https”,
WEBHOOK_TUNNEL_URL: “https://automate.mydomain.co/”,
N8N_HOST: “automate.inteleo.co”,
N8N_SSL_CERT:“/home/ubuntu/cert/cer.crt”,
N8N_SSL_KEY:“/home/ubuntu/cert/cert.key”,
VUE_APP_URL_BASE_API:“https://automate.mydomain.co/
}
}]
}

Hey @icgosas,

Welcome to the community :tada:

I have just tried your domain and it looks like you have nginx installed so you would need to either set up the nginx reverse proxy to correctly route to n8n or make sure you specify the port.

You may want to check your env options as well as we no longer support basic auth and webhook_tunnel_url should be webhook_url so your config should look more like this…

module.exports = {
  apps : [{
    name : 'n8n',
    env: {
      N8N_PROTOCOL: 'https',
      WEBHOOK_URL: 'https://automate.mydomain.co:5678',
      N8N_HOST: 'automate.inteleo.co',
      N8N_SSL_CERT:'/home/ubuntu/cert/cer.crt',
      N8N_SSL_KEY:'/home/ubuntu/cert/cert.key'
    }
  }]
}

You would then need to give Facebook the URL using the 5678 port as well.

Thank you for your welcome.

I have made the adjustments you mention, but I keep getting the same error from Facebook:

Could not validate URL. Callback verification failed with the following errors: curl_errno = 60; curl_error = SSL certificate problem: unable to get local issuer certificate; HTTP Status Code = 200; HTTP Message = Connection established
When I test with Postman, it sends the information without problem. But according to what Facebook says, it is an SLL issue.

SSL ERROR: Can’t validate SSL Certificate. Either it is self-signed (which will cause browser warnings) or it is invalid.

Hey @icgosas,

It could be that Facebook doesn’t trust the certificate authority you have used or maybe your cert chain is not complete.

I have done a quick test and I can’t see any issues on the site with the cert so you will need to reach out to Facebook to find out why they don’t ike it.

For reference this is the results of a quick scan: SSL Server Test: automate.inteleo.co (Powered by Qualys SSL Labs) if that is fine then Facebook should be ok.

1 Like