Reqwest GET https unable to get local issuer certificate

I am fetch https://www.rte-france.com/themes/swi/xml/power-co2-emission-fr.xml?_= with reqwest crates, and I have following error message

unable to get local issuer certificate

same error when doing a curl.

However, all parents certificates seems present in my Ubuntu :

$ ls -lisa /etc/ssl/certs/Glo*
7211313 4 lrwxrwxrwx 1 root root 66 mai    3 14:29 /etc/ssl/certs/GlobalSign_ECC_Root_CA_-_R4.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_ECC_Root_CA_-_R4.crt
7211314 4 lrwxrwxrwx 1 root root 66 mai    3 14:29 /etc/ssl/certs/GlobalSign_ECC_Root_CA_-_R5.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_ECC_Root_CA_-_R5.crt
7211315 0 lrwxrwxrwx 1 root root 57 mai    3 14:29 /etc/ssl/certs/GlobalSign_Root_CA.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_CA.crt
7211316 4 lrwxrwxrwx 1 root root 62 mai    3 14:29 /etc/ssl/certs/GlobalSign_Root_CA_-_R2.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_CA_-_R2.crt
7211317 4 lrwxrwxrwx 1 root root 62 mai    3 14:29 /etc/ssl/certs/GlobalSign_Root_CA_-_R3.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_CA_-_R3.crt
7211318 4 lrwxrwxrwx 1 root root 62 mai    3 14:29 /etc/ssl/certs/GlobalSign_Root_CA_-_R6.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_CA_-_R6.crt
7210927 0 lrwxrwxrwx 1 root root 58 sept. 16 14:28 /etc/ssl/certs/GlobalSign_Root_E46.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_E46.crt
7211286 0 lrwxrwxrwx 1 root root 58 sept. 16 14:28 /etc/ssl/certs/GlobalSign_Root_R46.pem -> /usr/share/ca-certificates/mozilla/GlobalSign_Root_R46.crt

Playground : Rust Playground

I manage to fix the curl command by downloading the web site certificate. Is it normal.

Please advise why my rust code does not work.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.