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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/a8314155-0390-4f70-a9cc-09a5c4256ffcn%40googlegroups.com.

Reply via email to