how docker-machine uses docker api to copy certificates

My question is, as I understand docker-machine uses docker remote API to do whatever it does, for example to regenerate certificates. I have checked docker API but couldn’t find how it’s possible to send certificates to that machine using only docker api, can someone help please?

  • Docker: filesystem changes not exporting
  • Kubernetes Kube-Proxy Server: Can it run without iptables' nat module?
  • How to get IP address of docker container in jenkins?
  • TeamCity configuration doesn't persist inside docker
  • Setting up CD for a Ruby on Rails project with Bitbucket Pipelines and Docker
  • AWS elastic beanstalk not mounting docker volumes
  • Docker Centos 7 easy_install supervisor ssl issue behind proxy
  • Docker cannot create a machine - 'Error in driver during machine creation'
  • Ajax not responding on Node.Js Express server
  • How can I access a container on boot2docker through the web browser?
  • how to define HTTP health check in a consul container for a service on the same host?
  • Access binaries inside docker
  • One Solution collect form web for “how docker-machine uses docker api to copy certificates”

    The TLS files are hosted locally on the Docker client. For this reason you should protect the files as if they were a root password.

    This page will walk you through generating the files needed to negotiate a connection over TLS. Note that the remote daemon must be running TLS.

    docker --tlsverify --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem -H=$HOST:2376 version

    Note: Docker over TLS should run on TCP port 2376.

    Warning: As shown in the example above, you don’t have to run the
    docker client with sudo or the docker group when you use certificate
    authentication. That means anyone with the keys can give any
    instructions to your Docker daemon, giving them root access to the
    machine hosting the daemon. Guard these keys as you would a root

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.