-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.I setup the dify in our lab, and want to configure the model provider (deepseek) which is setup by the vllm, but I got the error like this from the portal:
logs from the container,
It's indeed using the self-signed certs, but I have import certs into the container of Does anyone know how to fix it? or bypass the cert validation? 2. Additional context or commentsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Hi @chendave! I'm Dosu and I’m helping the dify team. The SSL verification error happens because Dify's HTTP client doesn't trust your self-signed certificate by default, and just importing the cert into the container isn't enough. You need to update the Dify code to respect the SSL verification setting and restart the container. Here's how to bypass SSL verification (only do this in a trusted environment):
Disabling SSL verification is risky—only do this if you trust your network environment. If you want to trust your self-signed cert instead, you'll need to add your CA to the trusted store and set Let me know if you need help with the trusted CA approach or if you run into issues after making these changes. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
I have added this environment in the ".env" file,
I am on the commit id of "244c132656c50bd7e8f88ac049ee8b6499477188", the code of "api/core/helper/ssrf_proxy.py",
and then run "docker compose down" and "docker compose up -d", the issue is still there. my question is how I can check the setting in the "HTTP_REQUEST_NODE_SSL_VERIFY" is effective? I suppose the change of code there won't has any different since I am setup the dify via the docker container instead of the source, right? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In the file of docker-compose.yaml, I can see the the x-shared-env of "HTTP_REQUEST_NODE_SSL_VERIFY", but I cannot see it is referenced in any of the service. @dosu |
Beta Was this translation helpful? Give feedback.
-
okay, this issue has finally solved, I believe the code base should be updated a little bit. here is the rootcause,
|
Beta Was this translation helpful? Give feedback.
okay, this issue has finally solved, I believe the code base should be updated a little bit.
here is the rootcause,
by default, python is not pointing to the right system certs directory in this container "plugin_daemon"
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt