Hi guys, I want to use the CLI of rancher2.4.5 to ...
# general
r
Hi guys, I want to use the CLI of rancher2.4.5 to control my cluster, but I have a problem when I login. I use option a: default ranger-generated self-signed certificate to run the rancher server. I got the certificate and private key from inside the rancher container. Then log in.
Copy code
docker run -d --restart=unless-stopped     -p 80:80 -p 443:443     rancher/rancher:stable

kubectl get secret -n kube-system k3s-serving -o jsonpath="{.data.tls\.crt}" | base64 --decode 
kubectl get secret -n kube-system k3s-serving -o jsonpath="{.data.tls\.key}" | base64 --decode 

./rancher login <https://rancher.xxxxy.cn/v3> --token token-2r8hf:9cqljp2dccmvkpj --cacert cert.pem
FATA[0000] CACerts is not valid
Why is this? Can anyone tell me?