Skip to content
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

CA Certificate File Path #12884

Closed
azenakhi opened this issue Oct 23, 2015 · 8 comments
Closed

CA Certificate File Path #12884

azenakhi opened this issue Oct 23, 2015 · 8 comments
Labels
needs_info This issue requires further information. Please answer any outstanding questions.

Comments

@azenakhi
Copy link

Hello,

I have a problem with Ansible about the ca_file_path variable inside the config file ansible.cfg.

I redefined this variable for using another path. But, Ansible always use the default path system /etc/ssl/certificats. For example, I want use the os_file_path = /tools/product/ansible/cacert.crt. But, he doesn’t work.

See here :

https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/urls.py
method : def get_ca_certs(self).

I tried to understand to simulate that method, I think the variable "ca_file_path" is never used.

Thank you by advance.

@pathcl
Copy link

pathcl commented Oct 23, 2015

@azenakhi it should be simple to have a workaround. In which system are you?

paths_checked.append('/tools/product/ansible/cacert.crt')

@abadger
Copy link
Contributor

abadger commented Oct 26, 2015

We think that ca_file_path may be an outdated example that we need to remove from the sample config file. That hasn't been used since at least 1.7.0 (Could be even earlier... 1.7.0 is just the furthest back in history that I checked).

What are you actually trying to do? (What is your ansible playbook that's failing)? We may be able to recommend something for you if we know what you're actually trying to do.

@abadger abadger added the needs_info This issue requires further information. Please answer any outstanding questions. label Oct 26, 2015
@azenakhi
Copy link
Author

Thank for your message.

My problem is simple: I wanted make my custom certificate path inside ansible.cfg in order ansible to take this changement.

Best regards.

@abadger
Copy link
Contributor

abadger commented Oct 26, 2015

custom certificate path to do what? There's different potential solutions depending on what you are trying to actually accomplish.

@azenakhi
Copy link
Author

I wanted put my cacert.crt inside the path for example /usr/local/cacert.crt.

@abadger
Copy link
Contributor

abadger commented Oct 26, 2015

What playbook or ansible command line command will this make work for you?

abadger added a commit that referenced this issue Oct 26, 2015
… long time (if ever) and is confusing people For instance, #12884
@azenakhi
Copy link
Author

Thank you for you help.

@abadger
Copy link
Contributor

abadger commented Oct 30, 2015

I would have liked to have helped more but would have needed more information.

Perhaps these links will be of assistance to either you or to someone coming across this via google (they're how to add ca certificates on red hat-based and ubuntu/debian linux distributions:

@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs_info This issue requires further information. Please answer any outstanding questions.
Projects
None yet
Development

No branches or pull requests

3 participants