"SSLHandshake: Unsupported curveid: 29" with win_get_url

348 views
Skip to first unread message

Jean Jordaan

unread,
Nov 17, 2017, 2:59:32 AM11/17/17
to Ansible Project
Hi all

We're trying to get a file from a server in a playbook:

    - win_get_url:
       url
: https://some.domain.com/test.txt
       dest
: D:\test.txt
       url_username
: xxxxx
       url_password
: xxxxx
       skip_certificate_validation
: yes
       validate_certs
: no
       use_proxy
: no
       force
: yes

This fails with the failure SSLHandshake: Unsupported curveid: 29
We changed to the following, and now it works:

  - name: Get release
     win_shell
: |
          $headers
= @{}
          $headers
.Add("Authorization", "Basic redacted")
         
Invoke-WebRequest -Uri "https://some.domain.com/test.txt" -Headers $headers -OutFile "test.txt"


Where is win_get_url losing the plot?

Regards,
Jean

Mike Fennemore

unread,
Nov 17, 2017, 4:37:04 AM11/17/17
to Ansible Project
if you run the same playbook with win_get_url but with -vvvv what is the output?

cha...@salweensolutions.com

unread,
Nov 17, 2017, 6:58:17 AM11/17/17
to Ansible Project
The error message is somehow different than what it originally was, but the output I'm getting from -vvvv (Jean posted on my behalf) is still similar which is the following:

TASK [win_get_url] ***************************************************************************************************
task path: /mnt/c/path/to/playbook/playbook.yml:15
Using module file /home/xxxx/.local/lib/python2.7/site-packages/ansible/modules/windows/win_get_url.ps1
<xxx.xxx.x.x> ESTABLISH WINRM CONNECTION FOR USER: xxxx on PORT yyyy TO xxx.xxx.x.x
EXEC (via pipeline wrapper)

Mike Fennemore

unread,
Nov 17, 2017, 7:30:54 AM11/17/17
to Ansible Project
Are you running Ansible from Bash on Ubuntu on Windows?

Jean Jordaan

unread,
Nov 17, 2017, 8:23:14 AM11/17/17
to ansible...@googlegroups.com
Yes, using WSL.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/rhqmAtAnHMI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ec434c0a-ce14-4e9f-b5af-d709e5d522c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages