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?

  • How can I make a HTTP request from one docker container to another linked container?
  • Getting connection reset by peer error while using docker on Ubuntu 14.04
  • docker compose run bash command on start
  • Docker Solr: Cannot index local data folder
  • How to COPY / ADD resources via a Dockerfile for privileged users?
  • Web Socket handshake error in Docker
  • I started a docker container in bluemix and ice ps shows my container in state “Queued” for hours
  • Maximum TCP connections (with different IPs/containers)
  • Docker-compose : volumes and user
  • How to connect to Informix DB on host machine from a container through jdbc?
  • How can I test that a docker wordpress-fpm with custom plugins works
  • How to configure an Hbase cluster in fully distributed mode using 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.