SSL Labs: This server’s certificate chain is incomplete
SSL certificate OpenSSL verify result: unable to get local issuer certificate (20).
Other Information
Hello!
I’m having an SSL certificate chain issue with my domain brennodv.me, when i tested the SSL in SSL Labs, the test reports: “This server’s certificate chain is incomplete.”
PHP cURL requests to my API also fail with:
“SSL certificate OpenSSL verify result: unable to get local issuer certificate (20).”
The certificate is issued by Let’s Encrypt, and the API works when SSL verification is disabled, i tried searching but nothing seems to solve my problem
Thank you!
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
Is the API your PHP code calls on brennodv.me itself, or on a different host? And can you run this and post the certificate part of the output?
The answer tells us which server is sending the incomplete chain, and so which certificate cURL is rejecting. If it’s your own domain, the output also shows whether only one certificate comes back (the leaf, with no Let’s Encrypt intermediate).
Another member reported that exact pattern on a Let’s Encrypt certificate installed from the panel, with strict clients like curl failing while browsers still load the site. Yours might be the same thing:
I haven’t found an answer or a fix in the knowledge base or in the topics I read, so the openssl output is what would show whether yours matches.
Certificate chains are never supported on free hosting except for free subdomains which recieves managed certificates, so you’ll always see SSL checkers complain about it.
If you really want to solve the SSL issue then you must use Cloudflare which uses their own certificates.
But even with that you will not be able to host an API here.