rancher / quickstart

381 stars 338 forks source link

Rancher Vagrant Quickstart cannot get past curl - certificate expired #219

Open jac121212 opened 1 year ago

jac121212 commented 1 year ago

I'm trying to deploy rancher with Vagrant and virtualbox with the QuickStart installation guide: https://rancher.com/docs/rancher/v2.6/en/quick-start-guide/deployment/quickstart-vagrant/

==> server-01: Loading metadata for box 'chrisurwin/RancherOS' server-01: URL: https://vagrantcloud.com/chrisurwin/RancherOS ==> server-01: Adding box 'chrisurwin/RancherOS' (v1.5.1) for provider: virtualbox server-01: Downloading: https://vagrantcloud.com/chrisurwin/boxes/RancherOS/versions/1.5.1/providers/virtualbox.box server-01: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--):--) An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.

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.

Any idea how to get round this (by editing the vagrantfile?)

bashofmann commented 1 year ago

For me vagrantcoud.com has a valid TLS certificate, which is not expired. If this is still happening: Do you maybe have some corporate HTTP proxy in between, which breaks TLS?

You can of course always disable TLS validation for the box download: https://developer.hashicorp.com/vagrant/docs/vagrantfile/machine_settings#config-vm-box_download_insecure.

stefanlasiewski commented 8 months ago

This issue should be closed.

Vagrant renewed their certificate last year and it works:

$ curl -vI https://vagrantcloud.com/chrisurwin/RancherOS 2>&1 |grep date
*  start date: May  8 00:00:00 2023 GMT
*  expire date: Jun  4 23:59:59 2024 GMT