Error "msg": "credssp: __enter__",

Hello All,

Testing credssp using CA signed certificate. I am already able to test credssp in my Windows 2016 using this command below.

Test out HTTPS, ignoring certificate verification

$username = “myad\myuser”
$password = ConvertTo-SecureString -String “mypass” -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password

$session_option = New-PSSessionOption -SkipRevocationCheck
Invoke-Command -ComputerName “myserver” -UseSSL -ScriptBlock { ipconfig } -Credential $cred -SessionOption $session_option -Authentication CredSSP

But from ansible it throw errors like these:

self.tls_connection.bio_write(in_token)
File “/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py”, line 1867, in bio_write
with _ffi.from_buffer(buf) as data:
AttributeError: enter
fatal: [xx.xx.xxx.xxx]: UNREACHABLE! => {
“changed”: false,
“msg”: “credssp: enter”,
“unreachable”: true

Any help would be greatly appreciated.

Clinton