Schannel SSL / TLS Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

curl: (35) schannel: next InitializeSecurityContext failed (SEC_E_UNTRUSTED_ROOT / SEC_E_ALGORITHM_MISMATCH)

curl on Windows (Schannel) couldn't complete the TLS handshake and shows the underlying SEC_E_ error code.

Exact message you may see curl: (35) schannel: next InitializeSecurityContext failedschannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325)
Seen on: curl Windows SSL

Meaning

Read the code: SEC_E_UNTRUSTED_ROOT (root missing from the Windows store), SEC_E_CERT_EXPIRED, SEC_E_WRONG_PRINCIPAL (name mismatch), SEC_E_ALGORITHM_MISMATCH (no common protocol/cipher, TLS 1.2 disabled), CRYPT_E_NO_REVOCATION_CHECK (revocation). Update root certificates and enable TLS 1.2 in the OS/registry.

Common causes

  • Untrusted/missing root in Windows store
  • TLS 1.2 disabled on old Windows
  • Revocation server unreachable
  • Hostname mismatch
  • Proxy/AV re-signing

⚡ Quick fix

  1. Look up the exact SEC_E_*/CRYPT_E_* code
  2. Update Windows root certificates and TLS settings
  3. Use --ssl-no-revoke only for diagnosis

Detailed fix by platform

Shell

  1. bash
    curl -v https://example.com
    curl --ssl-no-revoke https://example.com   # diagnosis only

How to diagnose

  1. Code — Which?
  2. Root — In store?
  3. TLS 1.2 — Enabled?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

.NET TLS — The request was aborted: Could not create SSL/TLS secure channel (.NET Framework TLS 1.2 not enabled) (SSL / TLS).NET TLS0x800CCC0D — Outlook error 0x800CCC0D: Cannot find the server — the host name of the mail server couldn't be resolved (Email / SMTP)0x800CCC0D0x800CCC0E — Outlook error 0x800CCC0E: Cannot connect to the outgoing (SMTP) server — sending failed (Email / SMTP)0x800CCC0E169.254.x.x self-assigned IP (DHCP failed) — Networking: IPv4 address 169.254.x.x (Autoconfiguration / APIPA) — the PC couldn't get an address from DHCP (Networking)169.254.x.x self-assi…450 — HTTP 450 Blocked by Windows Parental Controls (HTTP)450certificate does not have a private key (IIS) — Windows/IIS: A specified logon session does not exist / The certificate does not have a private key associated with it (SSL / TLS)certificate does not …client cert — curl: (58) unable to set private key file / could not load PEM client certificate (SSL / TLS)client certCould not establish trust relationship for the SSL/TLS secure channel — .NET: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel (SSL / TLS)Could not establish t…Schannel

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.