-
Notifications
You must be signed in to change notification settings - Fork 110
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
"Error: Unencrypted communication not supported" with 0.8.0 and winrm #108
Comments
@muktaa, can you take a look? Presumably this only happens if we run from Windows. |
@rlaveycal, can you let us know the value of |
and
|
I also see the failure even when |
It took me adding "AllowUnencrypted = false" to both the client (Windows) and the server side to get this to function. It was in a weird state that was doing shell_open but then just blocked: DEBUG: :session => :init |
@carpnick , @adamedx - In brief, the following should be set on the remote machine: @carpnick - Please check and let me know if it works otherwise for you. |
@muktaa |
Yep, I can confirm that setting the remote machine's service/allowunencrypted to false works. |
I just ran into this scenario in the new Windows curriculum[1] at learn.getchef.com when attempting to bootstrap the cloudshare Windows node from my personal Windows workstation. Ensuring that the cloudshare Windows node was set to false resolved the issue for me as well. |
@muktaa, it seems like people are still getting confused by this. I think we can do something clever here and rely on the name format. |
Working on getting a fix for this issue. On Mon, Oct 13, 2014 at 9:01 AM, Adam Edwards [email protected]
|
Thank you Mukta. |
A lot of our documentation says you must/may set AllowUnencrypted to True on winrm/config/service on the server. https://docs.getchef.com/plugin_knife_windows.html My 2008R2 Server:
My Windows 8.1 Client:
Setting |
It looks like we currently, and in #109, are only using negotiate when we see a domain in the username, but winrm defaults to using negotiate when not in a domain and defaults to using kerberos when in a domain. It seems like we're making a confusing set of choices in here and #109. we should
http://msdn.microsoft.com/en-us/library/aa384295(v=vs.85).aspx
|
[Github issue #108] Backward compatibilty to support unencryption in winrm commn
I've just upgraded from 0.6.0 to 0.8.0 and now I get
when trying to bootstrap. The command
gives the same error. Uninstalling 0.8.0 fixes the problem.
The error seems to be coming from the winrm-s gem's sspi.rb class (decrypt_payload).
The 2 machines are Windows 2012 R2 and not on a domain. The client machine has Client/AllowUnencrypted set to true and service/AllowUnencrypted set to false. The target machine has service/AllowUnencrypted set to true.
The text was updated successfully, but these errors were encountered: