In a multi-domain SSL certificate, www and non-www versions are considered as separate domains. So, each versions need to be added individually as Subject Alternative Names (SANs).