Cannot create host on digital ocean

I have installed rancher on my private server, hosted on a private facility. I’m trying to create a new host on Digital Ocean, but it always stops when running “docker-machine regenerate-certs”.

Here’s the error message I get:

Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "host-ip-address:2376": remote error: tls: bad certificate" resourceId=1ph34 service=gms

Then, I turned off tls verification passing TlsVerify=false on the engine options section, but I get a different error message.

Error creating machine: Error running provisioning: ssh command error:" resourceId=1ph35 service=gms

I have tried provisioning an Ubuntu 16.04 host.

Any ideas what is wrong and how to fix it?