My domain is: www.phcomp.co.uk
I ran this command on the server & Debian client (Debian 12 & Rocky Linux 8.10):
curl -v https://les-test-b.phcomp.co.uk/index.html
It produced this output:
- Trying 46.43.0.112:443...
- Connected to les-test-b.phcomp.co.uk (46.43.0.112) port 443 (#0)
- ALPN: offers h2,http/1.1
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- CAfile: /etc/ssl/certs/ca-certificates.crt
- CApath: /etc/ssl/certs
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
- TLSv1.3 (IN), TLS handshake, Certificate (11):
- TLSv1.3 (OUT), TLS alert, unknown CA (560):
- SSL certificate problem: unable to get local issuer certificate
- Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: curl - SSL CA Certificates
However I am able to view the web site via web browsers firefox and brave
My web server is (include version): Apache
The operating system my web server runs on is (include version): Debian 12 & Rocky Linux 8.10
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site : no
The version of my client is: I use acme_tiny.py
This seems to be related to the following which does not come to a conclusion:
If I run curl under strace I see it looking in /etc/ssl/certs/ for 31dfb39d.0 and 8a24e8ea.0 but not finding anything.
So: it seems that the client operating system (ie where I run curl) is missing a file or two. Is this a Debian/RedHat problem or has Let's Encrypt not got these files out ?
Updating my individual client machines will not help as I cannot update the other machines that might try to use my server.
The file returned to me contains 2 certificates. The first with:
CN = les-test-b.phcomp.co.uk
Issuer: C = US, O = Let's Encrypt, CN = R11
The second:
Subject: C = US, O = Let's Encrypt, CN = R11
Issuer: C = US, O = Internet Security Research Group, CN = ISRG Root X1
So my client machine does not have the second issuer certificate (X1).
Creating a certificate with the cross signed certificate (isrgrootx1.pem) does not help as that is self signed (ie Subject = Issuer).
What can I do ?
Thanks