Cannot create a WinRM listener on HTTPS because this machine does not have an appropriate certificate. To be used for SSL, ...

Cannot create a WinRM listener on HTTPS because this machine does not have an appropriate certificate. To be used for SSL, a certificate must have a CN matching the hostname, be appropriate for Server Authentication, and not be expired, revoked, or self-signed.