Foreman server custom SSL issues

Hi

We have a single server setup running with a custom SSL certificate. This works fine for the main Foreman server URL e.g. https://foreman.network.com (all of the certificate chain is passed) but if we try to pull our public key from https://foreman.network.com:9090/ssh/pubkey using curl it seems to have issues and fail.

As far as I can tell, it’s not passing over the root certificate? Is there something I’m missing?

Foreman server:
Certificate chain
0 s:C = GB, L = location, O = company, CN = *.network.com
i:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1
1 s:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1
i:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
2 s:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
i:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA

Foreman server on port 9090:
Certificate chain
0 s:C = GB, L = location, O = company, CN = *.network.com
i:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1