By default Virtualmin generates self-signed certificate and it’s not recognized by your browser. It doesn’t mean your connection is not private, it just means that you need to request legit certificate from CA, like Let’s Encrypt.
To get free Let’s Encrypt certificate for your domain, simply go to Server Configuration/SSL Certificate page, find Let’s Encrypt tab and request recognized certificate.