My domain is: schmiedmann.dk
The certificate is a SAN certificate.
I ran this command: openssl s_client -connect schmiedmann.dk:443 -showcerts from a Debian machine with openssl 1.1.1w which failed with error Verify return code: 21 (unable to verify the first certificate)
Same command on a Ubuntu client with openssl 3 returns that everything is ok, it returns both the leaf and the intermediate, but from what I understand that doesn't necessarily mean that it actually got the intermediate certificate from the server response.
www.ssllabs.com also reports that the certificate chain is incomplete.
ChatGPT and online search suggestions point to wrong order of the certificate but I just did a CAT cert.fullchain cert.key > cert.pem and then it worked when browsing the site. So I just assumed everything was fine. Other suggestions also points to that the CA store on the client needed to be updated and I did that without luck.
I also called another domain from the Debian machine that had a Let's Encrypt certificate, it was mentioned in another community post, which had similar issues post Chain incomplete since feb 8 2024 The reason here was because his automation was removing the intermediate certificate, it is not the case here I use the fullchain + key. But that certificate adm-oldenhage.nl is validating perfectly on www.ssllabs.com and also when calling openssl s_client -connect adm-oldenhage.nl:443 -showcerts from the Debian client that can't validate my certificate.
I have also tested the certificate from the same Debian client that failed, directly against one of the domains that are in the certificate, but that is hosted directly on the IIS so avoiding the haproxy and IIS is serving the certificate. That failed with the the same error so doesn't look like the issue is the haproxy setup or even the PEM i created. The certificate on IIS has been deployed by Certify the web and the domain works well when I browse it.
I have also tried to request new certificates, but still with the same issue.
The issue is that a supplier needs to access a API on that domain and they can't because the certificate validation fails.
My web server is haproxy on Ubuntu Linux + IIS on Windows.
The operating system my web server runs on is (include version):Ubuntu 24.04 and Windows server 2022
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 but Certify the web to manage my certificates.
The version of my client is I use Certify the web 6.1.9.0 it transfers the certificate files to haproxy using SSH, i also clean up the certificates so it only contains LF and not CRLF (windows)
