Error "msg": "credssp: __enter__",

33 views
Skip to first unread message

Clinton Ryan Manigsaca

unread,
Nov 24, 2021, 10:52:16 PM11/24/21
to Ansible Development
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

Reply all
Reply to author
Forward
0 new messages