Hello gents,
I am trying to configure WinRM on our SharePoint farm but I am stuck. We can't request multiple certificates for one hostname (som sort of information security policy). So I am using a certificate issued to server "A" and server "B" is
in the Subject Alternative Name. Configuring WinRM on the server "A" was fine. No problem what so ever. But I can't make it work on the server "B". Technet says it should work with Subject Alternative Name as well: https://support.microsoft.com/en-us/help/2019527/how-to-configure-winrm-for-https
Script:
New-WSManInstance winrm/config/Listener -SelectorSet @{Address='*';Transport="HTTPS"} `
-ValueSet @{Hostname=$LocalhostFQDN;CertificateThumbprint=$CertThumbPrint} `
-Verbose -ErrorAction Continue
Error:
New-WSManInstance : The WinRM client cannot process the request. The certificate CN and the hostname that were provided do not match.
At line:31 char:1
+ New-WSManInstance winrm/config/Listener -SelectorSet @{Address='*';Tr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-WSManInstance], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.NewWSManInstanceCommand
Thanks for any hint.
Jakub