I recently ran into the SSL certificate problem while I was deploying a vagrant box in my lab. One of the easiest ways to deploy a vagrant box is to fetch the box directly form a third party website. This initializes and brings up the box on a local providers such as Oracle virtualbox or VMware workstation. It is a method that works when there is direct connectivity to the internet from the host running vagrant.
This issue can be overcome by using an –insecure option if one is downloading the box directly and then planning to initialize it later. The command to do that is :
This does not work in case of running a command : $ vagrant init insecureserver/<vag-box>; vagrant up –provider virtualbox.
It throws an error like shown below
One of the ways to workaround this issue is to run the command, then go to the folder where the vagrantfile is created for this particular box and then edit it to include the below line.
config.vm.box_download_insecure = true
Now go back and run the vagrant init command, and the issue goes away. Of course, you will see an error that says a vagrantfile already exists for the particular box.
To get around this you can just use a vagrant up command as the file is already created in the previous step. This is how I got around the SSL certificate issue. Would love to hear if there is a better way to deal with this issue
Abhilash Basavarajaiah is a Global Technical Alliance Manager and an Ambassador for the Office of the CTO @ VMware.
He is a dynamic IT professional and an ambitious, highly-motivated individual with experience in pre-sales, business development, and
strategic alliances. He experienced in designing and architecting
hybrid cloud infrastructure with a focus on Software-Defined Datacenter.
He is passionate about technology and all things virtual and VMware has recognized him as a VMware vExpert and a vExpert Pro under the Evangelist path for his contribution to the virtualization and cloud computing communities through knowledge sharing and content creation.
Abhilash holds numerous technical certifications from VMware, EMC, Cisco, CNCF, Microsoft, and Rackspace