This message was deleted.
# harvester
a
This message was deleted.
s
Hi @great-bear-19718, would you like to give some help for it?
Also, what does the cluster address mean? The IP adrdress?
b
<https://150.140.130.120/apis/fleet.cattle.io/v1alpha1/namespaces/fleet-local/clusterregistrations>\": tls: failed to verify certificate: x509: cannot validate certificate for 150.140.130.120 because it doesn't contain any IP SANs
<- the cluster address used during installation
I have a ssl-certificates
setting
that contains a cert that’s only valid for the dns name associated with the IP address
g
a support bundle would be handy..
so you need the IP
150.x.x.x
to change to the dns record i assume?
👍 1
b
I just installed a fresh 1.2.0-rc2 cluster with a DNS name pointing at the chosen cluster address. Supplied a valid certificate for the ssl-certificates setting and started joining another node targeting the DNS address targeting the cluster address. This node simply logs the following repeatedly in its journal:
Copy code
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: curl: (60) SSL: no alternative certificate subject name matches target host name '158.38.237.194'"
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: More details here: <https://curl.se/docs/sslcerts.html>"
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: "
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: curl failed to verify the legitimacy of the server and therefore could not"
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: establish a secure connection to it. To learn more about this situation and"
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: how to fix it, please visit the web page mentioned above."
Jun 28 10:54:44 2 rancherd[2400]: time="2023-06-28T10:54:44Z" level=info msg="[stderr]: [ERROR]  000 received while testing Rancher connection. Sleeping for 5 seconds and trying again"
Not sure why it wants to use the IP address in this case. Wouldn’t it make sense to use the same address used when asked for cluster address during join?
If I curl the DNS-based address the certificate is valid according to the node joining.
config.yaml for rancherd on the node has server: https://dns-name:443 in it
this behaviour of using the IP seems to be new in 1.2 (I assume rancher 2.7.5 change), but I can’t find anything about it
managed to supply a certificate with IP SAN now, so no longer an issue, but this behaviour of using IP rather than configured server address isn’t ideal IMO