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?

  • Error getting response, check your network connection issue with cf ic login command
  • How do you map port on host inside swarm mode on Windows?
  • Cant find output of docker import
  • Unable to access the webapplication through container IP in service fabric cluster VM
  • Docker Tomcat exited 0 after run
  • Save file from Python script to Docker Container
  • Can not add a volume to Mongodb Docker instance
  • receiving runtime error on docker container only for specific machine
  • Build multiple images from multiple dockerfile
  • Can't run HMA OpenVPN in Docker [closed]
  • Docker Compose - Not picking up the dump file in the init command?
  • How to access docker web app through ssh?
  • 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.

    https://docs.docker.com/engine/security/https/

    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
    password!

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