Connecting to Windows Server from Linux with WinRM over https

Akshada 1 Reputation point
2022-09-29T04:29:21.67+00:00

Hi Team

We have a scenario, where we need to connect to Windows server from a Linux Server ( Jenkins host is linux )
We want the connection to happen over https with WinRM

For which we have following in place:

  1. WinRM is configured with http (5985), https (5986) listeners.
  2. Https listener is configured with SSL with thumbprint of SSL certificate whose CN is domain name, listener configuration successful.
  3. WinRM Service is running.

Connection from Linux server does not work when in my command I specify to use SSL transport for WinRM, its failing over SSL certificate issue.

Currently, I haven't performed any step to add any pem file for target Windows server SSL certificate on client ( Linux server )
Any suggestions/inputs/pointers on following will help.

  1. If Linux to Windows connectivity with WinRM over https is possible? The command I am using in that if I ask to disable validation of ssl certs it works over https, but I want to achieve it with SSL certs validation enabled.
  2. Which certificate or key should be added on to linux host, how to generate it?

Any response is really appreciated.

Thank you!

Regards,
Akshada

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.