Our Gitlab-ee Website returns certificates incorrectly

Additional description:
Certificate chain in https://codebits.abb.com is not set correctly. Server should return whole chain. Instead it only gives one certificate. This cause problems eg in Linux systems.

repeat steps (eg. in ubuntu)

curl https://codebits.abb.com/


curl: (60) SSL certificate problem: unable to get local issuer certificate

wget http://pki.abb.com/abbrootca.crt
openssl s_client -showcerts -connect codebits.abb.com:443 -CAfile abbrootca.crt

output contains only one certificate and line

Verify return code: 21 (unable to verify the first certificate)

Example from correct setup server:
openssl s_client -showcerts -connect rndbinaries.abb-drives.abb.com:443 -CAfile abbrootca.crt

outputs contains whole chain (3-files) one certificate and line

Verification: OK

See more from RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2

This message conveys the server’s certificate chain to the client.
Problem start: 2022-12-20 14:01:14
Application Name: codebits.abb.com
Affected Country or Business Unit Name: Global
Affected function:
Are other functionality working?: Yes
How are you connecting to network (from Office or Off-site/Home): Office