I'm trying to get root certificate for gitlab.com so that I can download files/build artifacts from repository using GitLab API (I need this due for HTTPS authentication from an IoT device).
For GitHub, I used the following command, provided by the MCU manufacture for OTA:
echo "" | \
openssl s_client -showcerts -connect api.github.com:443 | \
sed -n "1,/Root/d; /BEGIN/,/END/p" | openssl x509 -outform PEM
However, the same (replacing api.github with gitlab.com) doesn't get the root certificate. I'm a beginner, so can some please help.