I have a subdomain: webmail.domain.it who points to a folder of my website (domain.it/webmail)
My website work with a SSL certificate, on www and without www (www.domain.it and domain.it)
My subdomain have a different SSL certificate (let's encrypt) and work only if I write webmail.domain.it...