New Question
0

windows authentication using winrm and certificate from linux

asked 2020-08-10 09:55:17 +0200

Prakash gravatar image

Hi,

I found the below article that gives explanation on authenticating windows machine using winrm with pfx certificate. This works well for windows client using powershell.

https://cloudbase.it/windows-without-...

Is there any document on how to connect from linux. pfx certificate doesn't work when connected from linux using pywinrm or ansible. It gives unreachable error.

Regards Prakash

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2020-08-11 19:53:23 +0200

Prakash gravatar image

Thanks. I had to convert pfx to pem certificate and then able to use from ansible in linux. Unlike windows, ansible on linux requires both public and private key to connect.

edit flag offensive delete link more
0

answered 2020-08-10 12:00:48 +0200

avladu gravatar image

Hello,

'Unreachable error' can appear because of a wrong port that you are trying to connect (use port 5986). Or the Linux client box from where you try does not proper network connectivity to the Windows one, or the Windows one has an external firewall.

You can also try an updated wsmancmd from https://github.com/cloudbase/winrm-sc... .

Thank you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-08-10 09:55:17 +0200

Seen: 988 times

Last updated: Aug 11 '20