vle icon indicating copy to clipboard operation
vle copied to clipboard

test_downloadmanager failed due to expired certificate

Open rtrepos opened this issue 3 years ago • 8 comments

debug: Spawn: command: /usr/bin/curl' chdir: /pub/src/vleexp/vle/build' debug: [-L] debug: [www.vle-project.org/vle-1.0.0.dtd] debug: [-o] debug: [/tmp/vle-1.1.0.dtd] debug: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 225 100 225 0 0 29debug: 60 0 --:--:-- --:--:-- --:--:-- 2960 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. error: Download: fail to download resources: [/usr/bin/curl] (11196) exited, status=60

rtrepos avatar Jan 12 '22 10:01 rtrepos

My bad. I will fix the problem. Need few days :(

To continue to use Curl, add '-k' option to disable the check.

quesnel avatar Jan 12 '22 10:01 quesnel

SSL certificate is updated.

Thank you for the report.

quesnel avatar Feb 08 '22 12:02 quesnel

I have an issue that I think is related to this one :


rtrepos@literole:/pub/src/vle/build$ ./tests/utils/test_downloadmanager debug: Spawn: command: /usr/bin/curl' chdir: /pub/src/vle/build' debug: [-L] debug: [www.vle-project.org/vle-1.0.0.dtd] debug: [-o] debug: [/tmp/vle-1.1.0.dtd] debug: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 225 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-debug: - 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- debug: 0 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. error: Download: fail to download resources: [/usr/bin/curl] (34619) exited, status=60

With option '-k', it works well.

rtrepos avatar Apr 19 '22 14:04 rtrepos

The Curl SSL certificates seems too old on your computer.

Try to run:

openssl s_client -showcerts -servername server -connect www.vle-project.org:443 > cacert.pem

Then, Curl must correctly download resources:

curl --cacert cacert.pem https://www.vle-project.org

quesnel avatar Apr 19 '22 14:04 quesnel

Thanks, it is working on ubuntu perfectly. I have to find a way to make it work on Windows.

rtrepos avatar Apr 19 '22 15:04 rtrepos

The Curl subprocess fails on Windows too?

quesnel avatar Apr 20 '22 08:04 quesnel

Yes, and the "-k" option works as well.. Maybe I used the same Windows computer while the old certificate was still online ?

rtrepos avatar Apr 20 '22 09:04 rtrepos

I think that Curl 7.79.1 (provided in appveyor image) is a bit too old (It comes with a lot of root certificates) for the vle-project.org certificate.

We need either:

  • updating the Curl certificate (but how?)

  • using the recent Firefox, Edge or Chrome certificates available in appveyor image.

  • providing the certificate with VLE distribution tarball or installer..

quesnel avatar Apr 20 '22 13:04 quesnel