evil-winrm:An error of type OpenSSL::Digest::DigestError happened, message is Digest initialization

发布时间 2023-09-08 22:06:05作者: Wav3W1nd50r

使用evil-winrm无法连接主机,出现以下错误

Info: Establishing connection to remote endpoint

Error: An error of type OpenSSL::Digest::DigestError happened, message is Digest initialization failed: initialization error

Error: Exiting with code 1

 

修改/etc/ssl/openssl.cnf文件, 先定位到openssl_init,去掉该位置下的注释

在定位到provider_sect、default_sect、legacy_sect,去掉一下内容的注释,如果没有定位到, 就自己加上

定位关键词位置: 在normal模式下直接按“/”进入查找模式,

输入查找字符并按下回车,光标会跳到第一个匹配的位置,

按n查找下一个,按Shift+n查找上一个