惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
V
Vulnerabilities – Threatpost
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
B
Blog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园_首页
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
W
WeLiveSecurity
N
News and Events Feed by Topic
F
Fortinet All Blogs
PCI Perspectives
PCI Perspectives
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hacker News: Ask HN
Hacker News: Ask HN
爱范儿
爱范儿
腾讯CDC
Last Week in AI
Last Week in AI
月光博客
月光博客
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Help Net Security
Help Net Security
V
V2EX
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Heimdal Security Blog
L
LINUX DO - 最新话题
GbyAI
GbyAI
The Hacker News
The Hacker News
罗磊的独立博客
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V2EX - 技术
V2EX - 技术
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
O
OpenAI News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How to Fix Docker Login x509 Certificate Errors Behind a Corporate Proxy
Sandesh Pawar · 2026-06-22 · via DEV Community

Introduction

Enterprise and banking environments commonly enforce strict network-security controls. Internet access is often limited to a DMZ, while management zones and internal application environments have no direct internet connectivity.

In these environments, outbound traffic usually passes through an approved corporate proxy. This approach improves monitoring, access control, compliance, and auditability. However, it can create an unexpected issue when engineers run Docker commands such as docker login or docker pull.

A common error is:

Error response from daemon: Get "https://registry-1.docker.io/v2/":
tls: failed to verify certificate: x509: certificate signed by unknown authority

This article explains why the error occurs, why common TLS-bypass approaches are not appropriate for Docker, and how to permanently fix the issue by adding the corporate proxy certificate authority (CA) certificate to both the operating system and Docker’s registry trust store.

Why Docker Login Fails in Restricted Banking Environments

In a typical banking infrastructure, environments are segmented to reduce risk:

  • DMZ: Controlled internet access is available through an enterprise proxy.

  • Management Zone (MZ): Administrative systems are isolated from the public internet.

  • Application and production zones: Outbound connectivity is heavily restricted or completely blocked.

  • Corporate proxy: Inspects, controls, logs, and routes approved outbound traffic.

When Docker attempts to connect to Docker Hub, it communicates with endpoints such as:

registry-1.docker.io
docker.io
auth.docker.io

If the corporate proxy performs TLS or SSL inspection, it decrypts and re-encrypts HTTPS traffic. The proxy presents a certificate signed by the organization’s internal CA rather than the public CA expected by Docker.

If Docker does not trust that internal CA, certificate validation fails and Docker returns the x509: certificate signed by unknown authority error.

Why curl -k and wget --no-check-certificate Are Not a Docker Solution

For basic package downloads, teams may temporarily bypass certificate validation with commands such as:

curl -k https://example.com

or:

wget --no-check-certificate https://example.com

These commands disable TLS certificate validation. While they may help with short-term troubleshooting, they should not be used as a permanent solution in a regulated environment.

Docker works differently. Docker image operations are performed by the Docker daemon, which validates registry certificates independently. A successful curl -k test does not mean Docker will trust the same endpoint.

Disabling TLS validation weakens the security model and creates a risk of man-in-the-middle attacks. The correct approach is to install and trust the corporate proxy CA certificate.

Understanding Docker Daemon, Docker CLI, and Proxy Configuration

A frequent source of confusion is the difference between the Docker CLI and the Docker daemon.

Docker CLI

The Docker CLI is the command-line tool used by administrators and developers:

docker login
docker pull nginx
docker build .
docker push my-registry.example.com/app:1.0

The CLI sends commands to the Docker daemon.

Docker Daemon

The Docker daemon is the background service responsible for actions such as:

  • Pulling container images

  • Pushing images to registries

  • Building images

  • Creating and running containers

  • Connecting to external registries

Because the daemon establishes registry connections, proxy configuration and certificate trust must be correctly configured for the daemon.

Proxy Configuration Is Not Certificate Trust

Configuring a proxy tells Docker where to send outbound traffic. It does not automatically make Docker trust certificates generated by a TLS-inspecting proxy.

For example, this configuration routes Docker daemon traffic through a proxy:

[Service]
Environment="HTTP_PROXY=http://example.com"
Environment="HTTPS_PROXY=http://example.com"
Environment="NO_PROXY=localhost,127.0.0.1,.somecompany.com"

However, if the proxy re-signs HTTPS traffic using an internal CA, Docker still requires that CA certificate to validate the connection.

When to Use insecure-registries

Docker supports an insecure-registries setting in /etc/docker/daemon.json.

Example:

{
  "insecure-registries": ["my-registry-ip:5000"]
}

This setting is useful only for an internal registry that is intentionally running over HTTP or has an untrusted certificate.

It should not be used for Docker Hub endpoints such as:

docker.io
registry-1.docker.io

Marking a public registry as insecure disables important security protections. In banking and enterprise environments, the preferred solution is to trust the organization’s proxy CA certificate.

Permanent Fix: Add the Corporate Proxy CA Certificate

The permanent fix has two parts:

  1. Add the proxy CA certificate to the operating system trust store.

  2. Add the proxy CA certificate to Docker’s registry-specific certificate directory.

This ensures that both the host operating system and Docker trust the certificate presented by the corporate proxy.

Step 1: Export the Proxy Certificate

Use OpenSSL to retrieve the certificate chain from Docker Hub through the corporate proxy.

Replace the proxy IP address and port with your environment’s proxy details.

openssl s_client \
  -proxy <Proxy-server-IP>:<Proxy-port> \
  -showcerts \
  -connect registry-1.docker.io:443 \
  </dev/null 2>/dev/null \
  | sed -n '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \
  > proxy-ca.crt

This command connects to registry-1.docker.io through the proxy and saves the presented certificates into a file named proxy-ca.crt.

Important Validation Step

Before trusting the certificate, confirm that it belongs to the approved corporate proxy or corporate certificate authority.

openssl x509 -in proxy-ca.crt -noout -subject -issuer -dates

Review the certificate subject, issuer, and expiration dates. Do not install an unknown or unapproved certificate.

Step 2: Add the Certificate to the RHEL Trust Store

For RHEL, Rocky Linux, AlmaLinux, CentOS Stream, and similar distributions, copy the CA certificate into the system trust anchor directory.

sudo cp proxy-ca.crt /etc/pki/ca-trust/source/anchors/corporate-proxy.crt

Update the operating system certificate trust database:

sudo update-ca-trust extract

This step allows system tools and services to trust the corporate proxy CA.

Step 3: Add the Certificate to Docker’s Registry Trust Store

Docker supports registry-specific CA certificates under /etc/docker/certs.d/.

Create a directory for the Docker Hub registry endpoint:

sudo mkdir -p /etc/docker/certs.d/registry-1.docker.io/

Copy the corporate proxy CA certificate into the directory using the required filename:

sudo cp proxy-ca.crt /etc/docker/certs.d/registry-1.docker.io/ca.crt

Docker treats *.crt files in this directory as trusted CA roots for that registry.

Step 4: Configure Docker Daemon Proxy Settings

If the Docker host needs the proxy to reach Docker Hub, create a systemd drop-in configuration.

sudo mkdir -p /etc/systemd/system/docker.service.d/

Create the proxy configuration file:

sudo vi /etc/systemd/system/docker.service.d/http-proxy.conf

Add the following configuration and replace the example values:

[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080"
Environment="HTTPS_PROXY=http://proxy.example.com:8080"
Environment="NO_PROXY=localhost,127.0.0.1,.somecompany.com"

The NO_PROXY value should include internal domains, internal registries, loopback addresses, and services that should not use the corporate proxy.

Step 5: Reload systemd and Restart Docker

After updating the certificate and proxy configuration, reload systemd and restart the Docker daemon.

sudo systemctl daemon-reload
sudo systemctl restart docker

Verify that Docker is running:

sudo systemctl status docker

Step 6: Test Docker Login and Image Pull

Test Docker Hub authentication:

docker login

Then test an image pull:

docker pull hello-world

If the certificate trust and proxy configuration are correct, Docker should connect successfully without the x509 certificate error.

Troubleshooting Checklist

Verify the Docker Daemon Proxy Environment

Run:

sudo systemctl show docker --property=Environment

Confirm that HTTP_PROXY, HTTPS_PROXY, and NO_PROXY are present and correct.

Verify the Docker Certificate File

Confirm that the registry certificate directory exists:

sudo ls -l /etc/docker/certs.d/registry-1.docker.io/

Expected output should include:

ca.crt

Verify the Certificate Format

Docker expects a PEM-formatted certificate. Validate the file:

openssl x509 -in /etc/docker/certs.d/registry-1.docker.io/ca.crt -text -noout

Check Docker Service Logs

Review Docker daemon logs for detailed certificate or proxy errors:

sudo journalctl -u docker -n 100 --no-pager

Confirm Required Docker Hub Endpoints Are Allowed

Depending on the operation, Docker may need access to multiple endpoints, including:

registry-1.docker.io
auth.docker.io
production.cloudflare.docker.com

Your network and proxy teams should allow the required Docker Hub domains according to organizational security policy.

Security Best Practices for Banking and Enterprise Environments

  • Use the approved corporate proxy instead of direct internet access.

  • Do not permanently disable TLS certificate validation.

  • Do not configure public registries as insecure.

  • Obtain the proxy root CA certificate from the security or network team whenever possible.

  • Validate certificate ownership, issuer, expiration date, and fingerprint before installation.

  • Use an internal container registry or approved registry mirror for production workloads.

  • Restrict image sources to approved registries.

  • Scan container images before promoting them to production.

  • Use immutable image tags or image digests for deployment.

  • Document proxy, certificate, and registry configurations as infrastructure-as-code where possible.

Conclusion

The Docker error x509: certificate signed by unknown authority is common in restricted enterprise environments where a corporate proxy performs TLS inspection.

The issue is not solved by configuring only a Docker proxy or by using insecure registry settings for Docker Hub. Proxy configuration controls network routing, while CA certificate installation establishes trust.

The secure and permanent solution is to install the corporate proxy CA certificate into the host operating system trust store and Docker’s registry-specific certificate directory. Once Docker trusts the proxy CA, docker login, docker pull, and image builds can work reliably while maintaining the security controls required in banking environments.