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

Self signed certificate verification failed #349

Closed
rupurt opened this issue Dec 22, 2024 · 3 comments
Closed

Self signed certificate verification failed #349

rupurt opened this issue Dec 22, 2024 · 3 comments
Assignees
Labels

Comments

@rupurt
Copy link
Contributor

rupurt commented Dec 22, 2024

Describe the bug

After upgrading the dev21 we're now getting self signed certificate verification errors that weren't happening on dev15

Expected and actual results

SSLError: HTTPSConnectionPool(host='10.1.111.244', port=443): Max retries exceeded with url: /zosmf/restfiles/ds?dslevel=PKMO.IN.SALES.ADJ.%2A (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in
certificate chain (_ssl.c:1000)')))
`

Describe your environment

  • python 3.12
  • linux ubuntu 24.04

Additional context

None

@rupurt rupurt added the bug Something isn't working label Dec 22, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Dec 22, 2024
Copy link

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

@zowe-robot zowe-robot moved this from New Issues to High Priority in Zowe CLI Squad Jan 6, 2025
@t1m0thyj
Copy link
Member

t1m0thyj commented Jan 6, 2025

@rupurt Assuming that you're using self-signed certificates and have certificate validation enabled (rejectUnauthorized=true), we just published an update to the Python SDK (dev22) that should fix this error. Could you please give it a try and let us know?

See https://zowe-client-python-sdk.readthedocs.io/en/latest/usage/advanced.html for more details:

The Python SDK supports the commonly used environmental variables REQUESTS_CA_BUNDLE and CURL_CA_BUNDLE to provide a certificate chain.

@rupurt
Copy link
Contributor Author

rupurt commented Jan 6, 2025

Sweet. Yep, that is working nicely 🙏

@rupurt rupurt closed this as completed Jan 6, 2025
@github-project-automation github-project-automation bot moved this from High Priority to Closed in Zowe CLI Squad Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed
Development

No branches or pull requests

4 participants