Docker Community Forums

Share and learn in the Docker community.

UCP Client Bundle error x509: certificate issue

I am using Docker EE v3.2.4. I wanted to try out UCP client bundle so I logged in as admin and then downloaded the client bundle by going to Client Bundles > New Client Bundle > Generate Client Bundle

On my Windows 10 laptop, i unzipped the folder (ucp-bundle-admin) and then from command prompt, ran env.cmd:

c:\docker_trial\ucp-bundle-admin>.\env.cmd
Cluster "ucp_34.212.196.152:6443_admin" set.
User "ucp_34.212.196.152:6443_admin" set.
Context "ucp_34.212.196.152:6443_admin" created.

I then checked the env variables which are:

c:\docker_trial\ucp-bundle-admin>set | findstr /I docker
DOCKER_CERT_PATH=c:\docker_trial\ucp-bundle-admin\
DOCKER_HOST=tcp://34.212.196.152:443
DOCKER_TLS_VERIFY=1
KUBECONFIG=c:\docker_trial\ucp-bundle-admin\kube.yml

Now when i try running docker info, i get the following error:

c:\docker_trial\ucp-bundle-admin>docker info
Client:
 Debug Mode: false

Server:
ERROR: error during connect: Get https://34.212.196.152:443/v1.40/info: x509: certificate is valid for 10.96.0.1, 127.0.0.1, 172.31.35.143, not 34.212.196.152
errors pretty printing info

I have been struggling with this since yesterday evening and couldn’t get it working. Any help will really be appreciated.

I got this working by adding the given IP as SAN in UCP UI as shown below:

@ ibains007 helped me with it.