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

method to input SSL cert and proxy #47

Open
JanosPesti opened this issue Dec 7, 2022 · 1 comment
Open

method to input SSL cert and proxy #47

JanosPesti opened this issue Dec 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@JanosPesti
Copy link

Hi,

To get this python module running in our environment due to our firewalls we had to modify the configuration.py in the pypureclient/pure1/Pure1_1_1 folder in our venv as follows:

set :

self.ssl_ca_cert = '/etc/ssl/certs/ca-bundle.crt'
self.proxy = '<proxy fqdn:port>'

Is there a way to have these values set from the environment variables or inside our new script as a parameter to the connection line?
for example:
client = pure1.Client(app_id=PURE1_APP_ID,private_key_file=PURE1_PRIVATE_KEY_FILE, private_key_password=PURE1_PK_PWD,sslcert='/etc/ssl/certs/ca-bundle.crt',proxy= '<proxy fqdn:port>')

Or how can this be achieved without modifying the configuration.py file?

thanks
Janos

@sdodsley sdodsley added the enhancement New feature or request label Dec 8, 2023
@sdodsley
Copy link
Contributor

sdodsley commented Dec 8, 2023

This is being actively investigated. Apologies for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants