-
Notifications
You must be signed in to change notification settings - Fork 23.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_url: SSL cert verification failed for redirect #15679
Comments
Have you tested in 2.0.2? I believe this may have been resolved already. |
Can confirm the same issue on ansible version 2.0.2.0, running from arch linux and ubuntu 14.04 as target |
Your initial report indicated that this happened for redirects. It does not appear that this URL redirects in any manner. After further inspection, it appears as though the service hosting packages.chef.io uses SNI for it's SSL functionality. Python versions less than 2.7.9 do not support SNI natively, and cannot validate certificates. New for ansible 2.1 is the ability to validate SSL certs via SNI with older python versions by installing We do not intend on backporting that functionality to 2.0, and 2.1 just entered release candidate as of 26-Apr-2016. Please feel free to test this fix by installing 2.1 RC1 via http://releases.ansible.com/ansible/ansible-2.1.0.0-0.1.rc1.tar.gz An alternative solution is to set If you have further questions please stop by IRC or the mailing list:
|
Ok, it seems that if I want to use ansible 2.0 I need either to upgrade python version or set validate_certs=false. Thank you! |
The `except` block with exception matching throught `if 'connection refused' in str(e).lower():` is funny, but is not user-friendly. Probably related issues: - ansible#15679 - ansible#12161 - ansible#9966 - ansible#8221 - ansible#7218 ... and more
The `except` block with exception matching throught `if 'connection refused' in str(e).lower():` is funny, but is not user-friendly. Probably related issues: - ansible#15679 - ansible#12161 - ansible#9966 - ansible#8221 - ansible#7218 ... and more
ISSUE TYPE
ANSIBLE VERSION
OS / ENVIRONMENT
Running ansible from windows. Ansible is installed via
pip install
command in cygwin environment. Managed machine is ubuntu 14.04 in aws.SUMMARY
File download failed if site redirects to cdn on another domain.
STEPS TO REPRODUCE
Having a instance with running ubuntu 14.04 execute
EXPECTED RESULTS
File downloads just fine
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: