Hello.
tl;dr: Cannot generate root certificate for gitlab.com using echo "" | openssl s_client -showcerts -connect gitlab.com:443 | sed -n "1,/Root/d; /BEGIN/,/END/p"
. Please help.
I cannot generate root certificate to download files from repositories. So basically I want to a download file (build artifact) from my IoT device. I’m using the Gitlab API and using curl like curl --header "PRIVATE-TOKEN: secret-token" "https://gitlab.com/api/v4/projects/<my_id>/repository/files/main.bin/raw?ref=main
. To get the binary on my device I need a root certificate for HTTPS.
For github I used to command echo "" | openssl s_client -showcerts -connect api.github.com:443 | sed -n "1,/Root/d; /BEGIN/,/END/p"
but echo "" | openssl s_client -showcerts -connect gitlab.com:443 | sed -n "1,/Root/d; /BEGIN/,/END/p"
yields nothing. Can someone please tell what am I doing wrong.