[GH-ISSUE #1647] curl: (60) SSL Certificate Problem #919

Closed
opened 2026-04-12 10:36:25 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @kgene521 on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1647

curl https://ollama.ai/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Originally created by @kgene521 on GitHub (Dec 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1647 curl https://ollama.ai/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: self-signed certificate in certificate chain More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
Author
Owner

@vtrenton commented on GitHub (Dec 20, 2023):

hmm I can't reproduce this on my side with curl 7.81.0. What version are you running? Is it possible you are on a network that performs TLS interception that may be changing the certificates (a lot of enterprise networks are like this)?

<!-- gh-comment-id:1865278448 --> @vtrenton commented on GitHub (Dec 20, 2023): hmm I can't reproduce this on my side with curl 7.81.0. What version are you running? Is it possible you are on a network that performs TLS interception that may be changing the certificates (a lot of enterprise networks are like this)?
Author
Owner

@pdevine commented on GitHub (Dec 21, 2023):

@kgene521 I just tried this in both wsl2 and on macOS, and it's working fine. As @vtrenton mentioned, can you run curl -V and give some details about your platform? Also, this definitely could be a firewall problem.

<!-- gh-comment-id:1865338813 --> @pdevine commented on GitHub (Dec 21, 2023): @kgene521 I just tried this in both wsl2 and on macOS, and it's working fine. As @vtrenton mentioned, can you run `curl -V` and give some details about your platform? Also, this definitely could be a firewall problem.
Author
Owner

@mxyng commented on GitHub (Dec 21, 2023):

There's like a proxy between this server and ollama.ai which hasn't been configured for curl

<!-- gh-comment-id:1866974534 --> @mxyng commented on GitHub (Dec 21, 2023): There's like a proxy between this server and ollama.ai which hasn't been configured for curl
Author
Owner

@jmorganca commented on GitHub (Feb 20, 2024):

As mentioned above, do you have a proxy? This could be causing an issue – curl supports the HTTP_PROXY and HTTPS_PROXY environment variables which should be helpful here. I'll close this for now but let me know if this issue is still occuring

<!-- gh-comment-id:1953346887 --> @jmorganca commented on GitHub (Feb 20, 2024): As mentioned above, do you have a proxy? This could be causing an issue – `curl` supports the `HTTP_PROXY` and `HTTPS_PROXY` environment variables which should be helpful here. I'll close this for now but let me know if this issue is still occuring
Author
Owner

@sundaram123krishnan commented on GitHub (Feb 18, 2025):

Just add --insecure or -k args to suppress ssl errors

<!-- gh-comment-id:2664726718 --> @sundaram123krishnan commented on GitHub (Feb 18, 2025): Just add `--insecure` or `-k` args to suppress ssl errors
Author
Owner

@souhilmohammedi2-cpu commented on GitHub (Sep 18, 2025):

mouladia

<!-- gh-comment-id:3309969671 --> @souhilmohammedi2-cpu commented on GitHub (Sep 18, 2025): mouladia
Author
Owner

@souhilmohammedi2-cpu commented on GitHub (Sep 18, 2025):

na pvp

<!-- gh-comment-id:3309970168 --> @souhilmohammedi2-cpu commented on GitHub (Sep 18, 2025): na pvp
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#919