jeee-naut commented on issue #51561: URL: https://github.com/apache/airflow/issues/51561#issuecomment-3234076800
I ran into the same issue when upgrading to Airflow 3.0.4 Seems it boils down to this line in airflow/sdk/api/client.py (line 680) `ctx = ssl.create_default_context(cafile=certifi.where())` certify doesn't support custom CAs bei definition ([Certifi does not support any addition/removal or other modification of the CA trust store content. .... Look to upstream projects for methods to use alternate trust](https://pypi.org/project/certifi/).) But it should suffice to do something like `ctx = ssl.create_default_context(cafile=os.environ.get("SSL_CERT_FILE", certifi.where()))` to fix it. For now I use a [local setup file](https://airflow.apache.org/docs/apache-airflow/stable/howto/set-config.html#configuring-local-settings) doing basically ``` import certifi import os certifi.where = lambda: os.environ["SSL_CERT_FILE"] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
