Https on localhost

Hi !

I have local server on std port 3000 with domain and port opened on my router. I have cert for my domain and https work well.
Problem is when I am home and connect with a server via localhost (local ip:3000) then I got the error that connection is not secure since cert are for domain not for localhost.
I am able to generate second cert for localhost, but how to use both certs in Grafana ?
Also is it any way to redirect url to https (when I just enter IP :server I got error) ?

Current config is std:

# Protocol (http, https, socket)
protocol = https

# The ip address to bind to, empty will bind to all interfaces
;http_addr =

# The http port  to use
;http_port = 3000

# The public facing domain name used to access grafana from a browser
;domain = localhost

# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
;enforce_domain = false

# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
root_url = https://localhost:3000

# Log web requests
;router_logging = false

# the path relative working path
;static_root_path = public

# enable gzip
;enable_gzip = false

# https certs & key file
cert_file = /etc/grafana/cert.pem
cert_key = /etc/grafana/privkey.pem

# Unix socket path
;socket =