New Question
0

winrm certificate authentication from linux client

asked 2015-03-27 01:15:50 +0200

barakm gravatar image

I've been following the guide here: http://www.cloudbase.it/windows-witho... and it has been very useful. But it does not explain how to do certificate authentication from a linux client, only a windows one. And from what I can tell, the pywinrm package does not seem to do this. How do I authenticate to a windows server over WinRM using a certificate?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-03-27 18:00:00 +0200

ader1990 gravatar image

updated 2015-03-27 18:02:28 +0200

Hello,

If you have followed the tutorial you will have two files:

  • key.pem
  • key.pfx

You will need a private key file you can obtain by running this command:

openssl pkcs12 -in key.pfx -out private_key.pem -nodes

This is an example Python code to authenticate using a certificate: http://paste.openstack.org/show/197184/

The certificate authentication support has been included in pywinrm with this commit: https://github.com/diyan/pywinrm/comm...

Make sure you have the pywinrm version which contains this patch.

Hope it helps.

edit flag offensive delete link more

Comments

This looks like exactly what I need. I'll try it out.

barakm gravatar imagebarakm ( 2015-03-31 09:22:49 +0200 )edit

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: 2015-03-27 01:15:50 +0200

Seen: 1,327 times

Last updated: Mar 27 '15