I had generated SSL Certificate for the following Domains using letsencrypt DNS Challenge
The domain working with SSL on Browsers Chrome, Firefox, Edge https://netaxis.aicaller.xyz:4443/main.php
But while Accessing on Curl and PHP it shows error
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Your apache webserver running on ubuntu is configured to serve only the leaf certificate, not the full chain including the intermediate signing certificate.
tumbleweed:~ # openssl s_client -connect netaxis.aicaller.xyz:4443
CONNECTED(00000003)
depth=0 CN = netaxis.aicaller.xyz
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = netaxis.aicaller.xyz
verify error:num=21:unable to verify the first certificate
verify return:1
depth=0 CN = netaxis.aicaller.xyz
verify return:1
---
Certificate chain
0 s:CN = netaxis.aicaller.xyz
i:C = US, O = Let's Encrypt, CN = R3
a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
v:NotBefore: Feb 6 06:51:27 2024 GMT; NotAfter: May 6 06:51:26 2024 GMT
---