"SSLHandshake: Unsupported curveid: 29" with win_get_url

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

if you run the same playbook with win_get_url but with -vvvv what is the output?

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)

`

Are you running Ansible from Bash on Ubuntu on Windows?

Yes, using WSL.