[PR #13608] feat: skip certificate verify for insecure registries #19562

Open
opened 2026-04-16 07:10:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13608
Author: @stonezdj
Created: 1/3/2026
Status: 🔄 Open

Base: mainHead: pull_from_harbor


📝 Commits (1)

  • 7677f87 Skip certificate verify for insecure registries

📊 Changes

4 files changed (+35 additions, -10 deletions)

View changed files

📝 server/auth.go (+2 -2)
📝 server/download.go (+17 -3)
📝 server/images.go (+15 -4)
📝 server/upload.go (+1 -1)

📄 Description

fixes #11272
Pass the insecure option when initiate a https request to the registry with self-signed certificate.

Testing done:
Before:

ollama pull --insecure 192.168.1.2/library/qwen:0.5b
pulling manifest 
Error: pull model manifest: Get "https://192.168.1.2:443/v2/library/qwen/manifests/0.5b": tls: failed to verify certificate: x509: “HarborManager” certificate is not trusted

After change:

go run . pull --insecure 192.168.1.2/library/qwen:0.5b
# github.com/ollama/ollama
ld: warning: ignoring duplicate libraries: '-lobjc'
pulling manifest 
pulling fad2a06e4cc7: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 394 MB                         
pulling 41c2cf8c272f: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.3 KB                         
pulling 1da0581fd4ce: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏  130 B                         
pulling f02dd72bb242: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏   59 B                         
pulling ea0a531a015b: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏  485 B                         
verifying sha256 digest 
writing manifest 
success 

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13608 **Author:** [@stonezdj](https://github.com/stonezdj) **Created:** 1/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pull_from_harbor` --- ### 📝 Commits (1) - [`7677f87`](https://github.com/ollama/ollama/commit/7677f87674c1b26dbb730b36eb082e5e5700326f) Skip certificate verify for insecure registries ### 📊 Changes **4 files changed** (+35 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `server/auth.go` (+2 -2) 📝 `server/download.go` (+17 -3) 📝 `server/images.go` (+15 -4) 📝 `server/upload.go` (+1 -1) </details> ### 📄 Description fixes #11272 Pass the insecure option when initiate a https request to the registry with self-signed certificate. Testing done: Before: ``` ollama pull --insecure 192.168.1.2/library/qwen:0.5b pulling manifest Error: pull model manifest: Get "https://192.168.1.2:443/v2/library/qwen/manifests/0.5b": tls: failed to verify certificate: x509: “HarborManager” certificate is not trusted ``` After change: ``` go run . pull --insecure 192.168.1.2/library/qwen:0.5b # github.com/ollama/ollama ld: warning: ignoring duplicate libraries: '-lobjc' pulling manifest pulling fad2a06e4cc7: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 394 MB pulling 41c2cf8c272f: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.3 KB pulling 1da0581fd4ce: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 130 B pulling f02dd72bb242: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 59 B pulling ea0a531a015b: 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▏ 485 B verifying sha256 digest writing manifest success ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 07:10:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#19562