# Setup cert for multiple interfaces

**URL:** <https://forums.suse.com/t/setup-cert-for-multiple-interfaces/20010>\
**Category:** SUSE Rancher Prime\
**Created:** [April 8, 2021, 2:57am UTC](https://forums.suse.com/t/setup-cert-for-multiple-interfaces/20010 "2021-04-08T02:57:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admun](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/admun/32/4361_2.png) [@admun](https://forums.suse.com/u/admun)\
**Post date:** [April 8, 2021, 2:57am UTC](https://forums.suse.com/t/setup-cert-for-multiple-interfaces/20010/1 "2021-04-08T02:57:48Z")

</div>

My rancher initially setup for my homelab, where my internal net is 192.168.1.0/24, and using rancher self-signed cert.

Recently, I added a nebula (from slack) overlay VPN (192.168.211.0/24) on the host and hoping to use it to setup another k3s cluster remotely.

But when I deploy the cattle-cluster-agent, seeing the cert not valid when access rancher over the nebula interface…

How can I fix this? I supposed I can re-issue the rancher’s cert?

> INFO: Environment: CATTLE\_ADDRESS=10.42.1.14 CATTLE\_CA\_CHECKSUM=fa57ff42c48de01fdc9a271a3b57e88cd7a7713be44f2320866b2977f96d0690 CATTLE\_CLUSTER=true CATTLE\_FEATURES= CATTLE\_INTERNAL\_ADDRESS= CATTLE\_IS\_RKE=false CATTLE\_K8S\_MANAGED=true CATTLE\_NODE\_NAME=cattle-cluster-agent-686bc595df-77vr6 CATTLE\_SERVER=[https://192.168.211.xx:8443](https://192.168.211.xx:8443)  
> INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local nameserver 10.43.0.10 options ndots:5  
> INFO: [https://192.168.211.xx:8443/ping](https://192.168.211.xx:8443/ping) is accessible  
> INFO: Value from [https://192.168.211.xx:8443/v3/settings/cacerts](https://192.168.211.xx:8443/v3/settings/cacerts) is an x509 certificate  
> time=“2021-04-02T19:19:11Z” level=info msg=“Rancher agent version v2.5.7 is starting”  
> time=“2021-04-02T19:19:11Z” level=info msg=“Listening on /tmp/log.sock”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Certificate details from [https://192.168.211.xx:8443](https://192.168.211.xx:8443)”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Certificate #0 ([https://192.168.211.xx:8443](https://192.168.211.xx:8443))”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Subject: CN=dynamic,O=dynamic”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Issuer: CN=cattle-ca,O=the-ranch”  
> time=“2021-04-02T19:19:12Z” level=info msg=“IsCA: false”  
> time=“2021-04-02T19:19:12Z” level=info msg=“DNS Names: [[centos-1.home.net](http://centos-1.home.net) [centos-1.nebula.home.net](http://centos-1.nebula.home.net)]”  
> time=“2021-04-02T19:19:12Z” level=info msg=“IPAddresses: [127.0.0.1 172.17.0.2 172.17.0.3 192.168.211.1]”  
> time=“2021-04-02T19:19:12Z” level=info msg=“NotBefore: 2019-01-08 03:16:26 +0000 UTC”  
> time=“2021-04-02T19:19:12Z” level=info msg=“NotAfter: 2021-11-12 17:22:44 +0000 UTC”  
> time=“2021-04-02T19:19:12Z” level=info msg=“SignatureAlgorithm: SHA256-RSA”  
> time=“2021-04-02T19:19:12Z” level=info msg=“PublicKeyAlgorithm: ECDSA”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Certificate details for /etc/kubernetes/ssl/certs/serverca”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Certificate #0 (/etc/kubernetes/ssl/certs/serverca)”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Subject: CN=cattle-ca,O=the-ranch”  
> time=“2021-04-02T19:19:12Z” level=info msg=“Issuer: CN=cattle-ca,O=the-ranch”  
> time=“2021-04-02T19:19:12Z” level=info msg=“IsCA: true”  
> time=“2021-04-02T19:19:12Z” level=info msg=“DNS Names: ”  
> time=“2021-04-02T19:19:12Z” level=info msg=“IPAddresses: ”  
> time=“2021-04-02T19:19:12Z” level=info msg=“NotBefore: 2019-01-08 03:16:26 +0000 UTC”  
> time=“2021-04-02T19:19:12Z” level=info msg=“NotAfter: 2029-01-05 03:16:26 +0000 UTC”  
> time=“2021-04-02T19:19:12Z” level=info msg=“SignatureAlgorithm: SHA256-RSA”  
> time=“2021-04-02T19:19:12Z” level=info msg=“PublicKeyAlgorithm: RSA”  
> time=“2021-04-02T19:19:12Z” level=fatal msg=“Get "[https://192.168.211.xx:8443](https://192.168.211.xx:8443)": x509: certificate is valid for 127.0.0.1, 172.17.0.2, 172.17.0.3, 192.168.211.1, not 192.168.211.xx”
