Failed to establish connection to 10.104.235.234:443: x509: cannot validate certificate for 10.104.235.234 because it doesn't contain any IP SANs

Am getting this error after typying below command in this lab - GitOps with ArgoCD | KodeKloud

controlplane ~ :heavy_multiplication_x: kubectl get svc -n argocd
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
argocd-applicationset-controller ClusterIP 10.101.117.61 7000/TCP,8080/TCP 15m
argocd-dex-server ClusterIP 10.96.98.47 5556/TCP,5557/TCP,5558/TCP 15m
argocd-metrics ClusterIP 10.100.151.136 8082/TCP 15m
argocd-notifications-controller-metrics ClusterIP 10.99.116.28 9001/TCP 15m
argocd-redis ClusterIP 10.100.159.7 6379/TCP 15m
argocd-repo-server ClusterIP 10.109.177.46 8081/TCP,8084/TCP 15m
argocd-server NodePort 10.104.235.234 80:32765/TCP,443:32766/TCP 15m
argocd-server-metrics ClusterIP 10.98.111.1 8083/TCP 15m

controlplane ~ ➜  argocd repo add https://3000-port-31c74974bc4740ec.labs.kodekloud.com/bob/gitops-argocd.git --server 10.104.235.234
FATA[0000] Failed to establish connection to 10.104.235.234:443: x509: cannot validate certificate for 10.104.235.234 because it doesn't contain any IP SANs

This is from frame 2/16 of the lab, correct? I think the problem is that you added the --server SERVER-IP to the argo repo add REPO-URL command. I’m not sure what that’s supposed to point to, but since it’s HTTPS, argocd wants it to have a valid certificate.

The specific error is that the certificate, since it’s only give the IP for whatever server points to, it wants the IP encoded into the cert. Which it is not.