New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pywinrm with basic authentication and AllowUnencrypted="false" #79
Comments
You can set up winrm to accept connections via https. That is one way to get around this issue while still using basic auth. Kerberos is supported as well. Would either of these be these acceptable? |
Can we set up winrm to accept connections via https and at the same use kerberos ? |
Did you mange to get this working over https? |
Yes.. create a self-signed certificate. Import that certificate and create the winrm listener using that certificate. In python code,set endpoint as "https://:5986/wsman" |
Many thanks worked a treat. |
Out of interest has anyone managed to get this working on Windows 2012?
|
I found out the and wanted to share the knowledge, I set the configuration authentication to Basic before creating the listener, in Windows 2008 this isn't an issue as I assume the listener defaults are more relaxed, but the config has to be set after creating the listener. For anyone else out there here are the steps:
To check your configuration run:
Some useful guides that helped me: https://4sysops.com/archives/powershell-remoting-over-https-with-a-self-signed-ssl-certificate/ |
Had this issues, there is one hint that could save someone's time. If you're running this from powershell on Win2012 you need single quotes also:
|
Alternatively, just use PowerShell Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $false
Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true You can just pushd WSMan:\localhost\Service
ls
ls Auth |
There's no need to use Basic auth as well as setting |
After reading this article, our windows admin is convinced that the credentials are just being donated to "man in the middle". Can we make pywinrm more secure? I am ready to help in this endeavour.
The text was updated successfully, but these errors were encountered: