{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6693","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6693/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6693/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6693/events","html_url":"https://github.com/mitchellh/vagrant/issues/6693","id":123196214,"number":6693,"title":"vagrant provison curl ssl error","user":{"login":"vikas027","id":6998650,"avatar_url":"https://avatars.githubusercontent.com/u/6998650?v=3","gravatar_id":"","url":"https://api.github.com/users/vikas027","html_url":"https://github.com/vikas027","followers_url":"https://api.github.com/users/vikas027/followers","following_url":"https://api.github.com/users/vikas027/following{/other_user}","gists_url":"https://api.github.com/users/vikas027/gists{/gist_id}","starred_url":"https://api.github.com/users/vikas027/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikas027/subscriptions","organizations_url":"https://api.github.com/users/vikas027/orgs","repos_url":"https://api.github.com/users/vikas027/repos","events_url":"https://api.github.com/users/vikas027/events{/privacy}","received_events_url":"https://api.github.com/users/vikas027/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T01:54:48Z","updated_at":"2015-12-21T16:12:55Z","closed_at":null,"body":"I have vagrant-1.7.4-1 installed on a CentOS 7.1 x86_64 box. I am encountering an error while using curl with https URLs.\r\n\r\nvagrant provision --debug shows that I am stuck here\r\n\r\n```bash\r\nDEBUG ssh: PTY stdout parsed: Chef: 12.5.1\r\n INFO downloader: Downloader starting download:\r\n INFO downloader:   -- Source: https://www.getchef.com/chef/install.sh\r\n INFO downloader:   -- Destination: /root/.vagrant.d/tmp/1450662154-install.sh\r\n INFO subprocess: Starting process: [\"/opt/vagrant/embedded/bin/curl\", \"-q\", \"--fail\", \"--location\", \"--max-redirs\", \"10\", \"--user-agent\", \"Vagrant/1.7.4\", \"--output\", \"/root/.vagrant.d/tmp/1450662154-install.sh\", \"https://www.getchef.com/chef/install.sh\"]\r\nDEBUG subprocess: Selecting on IO\r\nDEBUG subprocess: stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0\r\n...\r\n...\r\n```\r\n\r\nThis is basically the below command which also throws the same error.\r\n```bash\r\n # /opt/vagrant/embedded/bin/curl -q --fail --location --max-redirs 10 --user-agent Vagrant/1.7.4 --output /root/.vagrant.d/tmp/1450656775-install.sh https://www.getchef.com/chef/install.sh\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:--  0:01:13 --:--:--     0curl: (60) SSL certificate problem: unable to get local issuer certificate\r\nMore details here: http://curl.haxx.se/docs/sslcerts.html\r\n\r\ncurl performs SSL certificate verification by default, using a \"bundle\"\r\n of Certificate Authority (CA) public keys (CA certs). If the default\r\n bundle file isn't adequate, you can specify an alternate file\r\n using the --cacert option.\r\nIf this HTTPS server uses a certificate signed by a CA represented in\r\n the bundle, the certificate verification probably failed due to a\r\n problem with the certificate (it might be expired, or the name might\r\n not match the domain name in the URL).\r\nIf you'd like to turn off curl's verification of the certificate, use\r\n the -k (or --insecure) option.\r\n#\r\n```\r\n\r\nHowever, it runs fine if I use `--insecure` switch\r\n```bash\r\n# /opt/vagrant/embedded/bin/curl --insecure --output /root/.vagrant.d/tmp/1450656775-install.sh https://www.getchef.com/chef/install.sh\r\nOR\r\n# /opt/vagrant/embedded/bin/curl --insecure --user-agent Vagrant/1.7.4 --output /root/.vagrant.d/tmp/1450656775-install.sh https://www.getchef.com/chef/install.sh\r\n```\r\nHow I can make this with `vagrant provision` command ?"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/166345275","html_url":"https://github.com/mitchellh/vagrant/issues/6693#issuecomment-166345275","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6693","id":166345275,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T16:12:55Z","updated_at":"2015-12-21T16:12:55Z","body":"This will be fixed in Vagrant 1.8. I cannot find the other issues, but if you search closed issues for the 1.8 milestone, it's been fixed in the installer because we updated to the latest CA bundle."}}