ansibleplaybookbundle / ansible-playbook-bundle

THIS REPO IS MIGRATING: https://github.com/automationbroker/apb
GNU General Public License v2.0
140 stars 70 forks source link

Bug 1572452 - Change --secure option to specify CA cert #285

Closed dymurray closed 6 years ago

dymurray commented 6 years ago

Looking here it appears we were using the verify flag as a pure boolean.verify can also take in a path to a CA cert to verify connections with. I added a new argument --ca-path which now allows the user to pass in the path to a custom CA cert. --secure will still set a boolean True and will expect that the certs are installed via certifi or can be grabbed from a public set of certs (check docs for list).

dymurray commented 6 years ago

By installed ca-bundle I mean installed via certifi. That is what is supported in 2.16+ of requests.

dymurray commented 6 years ago

On a downstream install of openshift-ansible I was able to do:

apb list --ca-path /etc/origin/master/ca.crt