WinRM cannot make the configuration change. The Subject used for the certificate mapping operation is not valid. It must ...

WinRM cannot make the configuration change. The Subject used for the certificate mapping operation is not valid.  It must contain at least one character.  It must contain at most one "*" character which should be the first character. (This may be the only character in which case it matches all subjects).  The Subject cannot be longer than 1023 characters.