Open se opened 1 year ago
I found that weird problem and fixed it like the following.
The problem is about the the openssl
(ofc). To fix this we need to add legacy support to the openssl
with the config file.
sudo nano /etc/ssl/openssl.cnf
Go to the [provider_sect]
section and add the following line under the default = default_sect
.
legacy = legacy_sect
Go to the [default_sect]
section and uncomment the following line. And also we are gonna need [legacy_sect]
to the following.
This is the old version;
#[default_sect]
#activate = 1
Should be like this;
[default_sect]
activate = 1
[legacy_sect]
activate = 1
This will enable the md4 for the openssl
.
We could add this to the documentation. What do you think?
All credits go to the @mickdec. Thanks to this comment https://forum.hackthebox.com/t/evil-winrm-error-on-connection-to-host/257342/14
We spent more than 4 days time to find this 😮💨
SUMMARY
We tried to connect to our PowerShell machine from Ubuntu 22.04 to Windows Server 2016 Standard.
Basic Authentication with SSL with a Local or AD Account works fine.
AD Account with -Authentication Kerberos or Negotiate gives the following error.
kinit works fine like;
MODULE VERSION
OS / ENVIRONMENT
COMMANDS THAT WE TRIED