Unable to import local minikube cluster due to certification error

I’ve installed rancher 2.0 on my MBP using helm with default configuration. But when I tried to manually import my minikube cluster into rancher, the cluster-agent will not be able to start normally. the pod would reporting: “ERROR: Failed to pull the cacert from the rancher server settings at https://rancher.localhost:30786/v3/settings/cacerts”.

I’m using the default rancher-generated CA cert, and the cacerts URL can be visited normally in minikube vm using “curl --insecure https://rancher.localhost:30786/v3/settings/cacerts” command.

How can I solve this? Do I have to register the auto-generated rancher CA certification to my minikube vm in order to make it works?

Thank you.