With the downloaded certificate, you can connect to the endpoint exposed from the cluster by using Docker Swarm API or Docker client. For more information, see Connect to a cluster by using Docker tools.
- Obtain the access address.
- Download and save the TLS certificate.
Configure a TLS certificate before you use the preceding access address to access the Docker cluster.
Click Download Certificate in the cluster details page to download the TLS certificate. The certFiles.zip file is downloaded. certificate. The
certFiles.zipfile is downloaded. In the following example, the downloaded certificate is saved to the ~/.acs/certs/ClusterName/ directory.
ClusterNameindicates the name of your cluster. You can save the certificate to a different directory, but we recommend using the ~/.acs/certs/ClusterName/ directory for easy management.
mkdir ~/.acs/certs/ClusterName/ #Replace ClusterName with your cluster name cd ~/.acs/certs/ClusterName/ cp /path/to/certFiles.zip . unzip certFiles.zip
certFiles.zip The certFiles.zip file contains ca.pem、cert.pem 和 key.pem.