How to apply TLS certificate for Rancher web interface?

I have Docker image rancher istallation:
$ sudo docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher

No matter what I do my rancher’s https url has no valid certificate (it contains SAN IP).

No result

No result

I tried docker one:

docker run -d --restart=unless-stopped \ -p 80:80 -p 443:443 \ -v /host/certs:/container/certs \ -e SSL_CERT_DIR="/container/certs" \ --privileged \ rancher/rancher:latest

No result

:cold_sweat:

What’s wrong here?
Regards

Anyone can help with this?

Most modern browsers do not consider self-signed certs secure. You need to import the signing cert into the browser as well (check browsers docs for how to do that).