adamant-kite-43734
01/13/2024, 12:29 AMmagnificent-vr-88571
01/13/2024, 12:31 AM192.168.14.22
as a part of tls-san list in master node too.creamy-pencil-82913
01/13/2024, 12:33 AMcreamy-pencil-82913
01/13/2024, 12:33 AM192.16.14.22
is the address of the rancher UI?magnificent-vr-88571
01/13/2024, 12:34 AMcreamy-pencil-82913
01/13/2024, 12:34 AMcreamy-pencil-82913
01/13/2024, 12:35 AMmagnificent-vr-88571
01/13/2024, 12:36 AMmagnificent-vr-88571
01/13/2024, 12:40 AMalso, you shouldn’t use an IP for the rancher server address. Get a hostname for it that actually resolves. (edited)sure got it, already I have a hostname to resolve, but somehow its picking up ip address.
magnificent-vr-88571
01/13/2024, 12:40 AMcreamy-pencil-82913
01/13/2024, 12:47 AMcreamy-pencil-82913
01/13/2024, 12:48 AMmagnificent-vr-88571
01/13/2024, 1:04 AMmagnificent-vr-88571
01/13/2024, 1:05 AMcreamy-pencil-82913
01/13/2024, 1:27 AMmagnificent-vr-88571
01/13/2024, 1:28 AMmagnificent-vr-88571
01/13/2024, 1:37 AMmagnificent-vr-88571
01/17/2024, 8:36 AM<http://rancher.internal.example.org|rancher.internal.example.org>
and while trying to add a remote cluster in the rancherui its still failing.
INFO: Environment: CATTLE_ADDRESS=10.42.4.204 CATTLE_CA_CHECKSUM= CATTLE_CLUSTER=true CATTLE_CLUSTER_AGENT_PORT=<tcp://10.43.66.187:80> CATTLE_CLUSTER_AGENT_PORT_443_TCP=<tcp://10.43.66.187:443> CATTLE_CLUSTER_AGENT_PORT_443_TCP_ADDR=10.43.66.187 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PORT=443 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_PORT_80_TCP=<tcp://10.43.66.187:80> CATTLE_CLUSTER_AGENT_PORT_80_TCP_ADDR=10.43.66.187 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PORT=80 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_SERVICE_HOST=10.43.66.187 CATTLE_CLUSTER_AGENT_SERVICE_PORT=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTP=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTPS_INTERNAL=443 CATTLE_CLUSTER_REGISTRY= CATTLE_FEATURES=embedded-cluster-api=false,fleet=false,monitoringv1=false,multi-cluster-management=false,multi-cluster-management-agent=true,provisioningv2=false,rke2=false CATTLE_INGRESS_IP_DOMAIN=sslip.io CATTLE_INSTALL_UUID=df236495-0903-4e2a-9cb6-9bc9eb0703c8 CATTLE_INTERNAL_ADDRESS= CATTLE_IS_RKE=false CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-59b87c5b-q2286 CATTLE_RANCHER_WEBHOOK_MIN_VERSION= CATTLE_RANCHER_WEBHOOK_VERSION=2.0.6+up0.3.6 CATTLE_SERVER=<https://rancher.internal.example.org> CATTLE_SERVER_VERSION=v2.7.9
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local default.svc.cluster.local nameserver 10.43.0.10 options ndots:5
INFO: <https://rancher.internal.example.org/ping> is accessible
INFO: rancher.internal.example.org resolves to 192.16.14.22
time="2024-01-17T08:16:20Z" level=info msg="Listening on /tmp/log.sock"
time="2024-01-17T08:16:20Z" level=info msg="Rancher agent version v2.7.9 is starting"
time="2024-01-17T08:16:21Z" level=info msg="Certificate details from <https://192.16.14.22>"
time="2024-01-17T08:16:21Z" level=info msg="Certificate #0 (<https://192.16.14.22>)"
time="2024-01-17T08:16:21Z" level=info msg="Subject: CN=Kubernetes Ingress Controller Fake Certificate,O=Acme Co"
time="2024-01-17T08:16:21Z" level=info msg="Issuer: CN=Kubernetes Ingress Controller Fake Certificate,O=Acme Co"
time="2024-01-17T08:16:21Z" level=info msg="IsCA: false"
time="2024-01-17T08:16:21Z" level=info msg="DNS Names: [ingress.local]"
time="2024-01-17T08:16:21Z" level=info msg="IPAddresses: <none>"
time="2024-01-17T08:16:21Z" level=info msg="NotBefore: 2024-01-16 09:58:22 +0000 UTC"
time="2024-01-17T08:16:21Z" level=info msg="NotAfter: 2025-01-15 09:58:22 +0000 UTC"
time="2024-01-17T08:16:21Z" level=info msg="SignatureAlgorithm: SHA256-RSA"
time="2024-01-17T08:16:21Z" level=info msg="PublicKeyAlgorithm: RSA"
time="2024-01-17T08:16:21Z" level=fatal msg="Server certificate does not contain correct DNS and/or IP address entries in the Subject Alternative Names (SAN). Certificate information is displayed above. error: Get \"<https://192.16.14.22>\": x509: cannot validate certificate for 192.16.14.22 because it doesn't contain any IP SANs"
creamy-pencil-82913
01/17/2024, 6:05 PMServer certificate does not contain correct DNS and/or IP address entries in the Subject Alternative Names (SAN)
Your certificate is improperly formatted. Certificates must have SANs that list the hostnames and/or IPs it is valid for.