问题描述
大家好,
我正在使用HyperV。
I am using HyperV.
我需要了解WinRM的配置,以便使用不同的通信渠道和通信的加密。
I need to understand the configuration of WinRM for using different communication channels and the encryption of the communication.
我理解HTTP / HTTPS侦听器的创建。我不明白的是AllowUnencrypted属性控制的是什么。文档说:
I understand the creation of HTTP/HTTPS listeners. What I don't understand is what is controlled by the AllowUnencrypted property. Docs says:
===
AllowUnencrypted - 允许客户端计算机请求未加密的流量。默认情况下,客户端计算机需要加密的网络流量,此设置为False。
AllowUnencrypted - Allows the client computer to request unencrypted traffic. By default, the client computer requires encrypted network traffic and this setting is False.
===
但究竟是什么意思,我们禁止如果'AllowUnencrypted = false',则使用HTTP?显然不是,因为我能够在没有HTTPS监听器的情况下进行通信。所以,显然我们有一些通过HTTP进行通信的加密。一些
更多关于准确加密的细节会有所帮助。
But what exactly that means, do we forbid usage of HTTP if 'AllowUnencrypted = false'? Obviously not, because I am able to communicate without HTTPS listener. So, obviously we have some kind of encryption that is done for the communication over HTTP. Some more details about what exactly encryption is being done would be helpful.
如果'AllowUnencrypted = true'会怎样?我偶然发现网上的一篇文章说在这种情况下只有SOAP不会被加密,但更多细节会有所帮助。
What happens if 'AllowUnencrypted = true'? I stumbled upon an article in the web which said that only the SOAP will be unencrypted in this case, but some more details would be helpful.
提前致谢,
-Stoimen
Stoimen
推荐答案
在W2K8上,我们以前能够运行:
On W2K8 we used to be able to run:
winrm set winrm / config / Client @ {AllowUnencrypted =" true"}
winrm set winrm/config/Client @{AllowUnencrypted = "true"}
在W2K12(Beta)上我们收到错误:
On W2K12 (Beta) we're getting the error:
错误:命令行的使用无效。输入"winrm - ?"求助。
Error: Invalid use of command line. Type "winrm -?" for help.
此命令的许多变体都尝试无济于事。
Many variations of this command have been tried to no avail.
"get"命令有效:
欢迎提出建议。
这篇关于AllowUnecrypted WinRM属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!