Curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

i have issues run curl command to my api i understand i need to bundle in my cert the internidiate ca not able to find how appreciate any help


1 Like

You have an incomplete chain.

Please, answer there questions:


its centos 7
and cpanel and whm server behind
i used cerbot and openssl command to export the certificate

1 Like

You should use fullchain.pem instead of cert.pem


looks it working thanks king


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