[GH-ISSUE #3340] --insecure not working #2057

Closed
opened 2026-04-12 12:17:46 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @tevino on GitHub (Mar 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3340

What is the issue?

Currently registry.ollama.ai has an expired TLS certificate, see #3336

I tried to use --insecure to mitigate the certificate issue, but it is not working:

> ollama pull mistral --insecure
pulling manifest 
Error: pull model manifest: Get "https://registry.ollama.ai:443/v2/library/mistral/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: “ollama.ai” certificate is expired

What did you expect to see?

According to the help, --insecure should be able to ignore the expired certificate:

> ollama pull --help
Pull a model from a registry

Usage:
  ollama pull MODEL [flags]

Flags:
  -h, --help       help for pull
      --insecure   Use an insecure registry

Environment Variables:
      OLLAMA_HOST        The host:port or base URL of the Ollama server (e.g. http://localhost:11434)

Ollama version

0.1.29

Originally created by @tevino on GitHub (Mar 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3340 ### What is the issue? Currently `registry.ollama.ai` has an expired TLS certificate, see #3336 I tried to use `--insecure` to mitigate the certificate issue, but it is not working: ```shell > ollama pull mistral --insecure pulling manifest Error: pull model manifest: Get "https://registry.ollama.ai:443/v2/library/mistral/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: “ollama.ai” certificate is expired ``` ### What did you expect to see? According to the help, `--insecure` should be able to ignore the expired certificate: ```shell > ollama pull --help Pull a model from a registry Usage: ollama pull MODEL [flags] Flags: -h, --help help for pull --insecure Use an insecure registry Environment Variables: OLLAMA_HOST The host:port or base URL of the Ollama server (e.g. http://localhost:11434) ``` ### Ollama version 0.1.29
GiteaMirror added the bug label 2026-04-12 12:17:46 -05:00
Author
Owner

@jmorganca commented on GitHub (Mar 25, 2024):

Merging with #3336

<!-- gh-comment-id:2017828080 --> @jmorganca commented on GitHub (Mar 25, 2024): Merging with #3336
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2057