Host Registration fails

I have setup a rancher with a host. Now i’m trying to add another host to the same, here is what I did, installed the docker-ce on the new host and then ran the following:

sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher

I get the following error (requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)) :

INFO: Running Agent Registration Process, CATTLE_URL= INFO: Attempting to connect to: INFO: is accessible INFO: Inspecting host capabilities INFO: Boot2Docker: false INFO: Host writable: true INFO: Token: xxxxxxxx INFO: Running registration Traceback (most recent call last):   File "./", line 11, in <module>
    secret_key=os.environ['CATTLE_REGISTRATION_SECRET_KEY'])   File "/usr/local/lib/python2.7/dist-packages/", line 45, in from_env
    return gdapi.from_env(prefix=prefix, factory=Client, **kw)   File "/usr/local/lib/python2.7/dist-packages/", line 613, in from_env
    return _from_env(prefix=prefix, factory=factory, **args)   File "/usr/local/lib/python2.7/dist-packages/", line 632, in
    return factory(**result)   File "/usr/local/lib/python2.7/dist-packages/", line 12, in
    super(Client, self).__init__(*args, **kw)   File "/usr/local/lib/python2.7/dist-packages/", line 197, in
    self._load_schemas()   File "/usr/local/lib/python2.7/dist-packages/", line 315, in
    response = self._get_response(self._url)   File "/usr/local/lib/python2.7/dist-packages/", line 264, in
    headers=self._headers)   File "/usr/local/lib/python2.7/dist-packages/requests/", line 501, in get
    return self.request('GET', url, **kwargs)   File "/usr/local/lib/python2.7/dist-packages/requests/", line 488, in request
    resp = self.send(prep, **send_kwargs)   File "/usr/local/lib/python2.7/dist-packages/requests/", line 609, in send
    r = adapter.send(request, **kwargs)   File "/usr/local/lib/python2.7/dist-packages/requests/", line 497, in send
    raise SSLError(e, request=request) requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Any clues to resolve this please