vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

test_downloadmanager failed due to expired certificate #393

Open rtrepos opened 2 years ago

rtrepos commented 2 years ago

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

quesnel commented 2 years ago

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

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

quesnel commented 2 years ago

SSL certificate is updated.

Thank you for the report.

rtrepos commented 2 years ago

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.

quesnel commented 2 years ago

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
rtrepos commented 2 years ago

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

quesnel commented 2 years ago

The Curl subprocess fails on Windows too?

rtrepos commented 2 years ago

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

quesnel commented 2 years ago

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: