How to Solve the cURL (60) Error When Using Proxy?

by mazen Mar 14, 2024

The cURL (60) error is a common error encountered when using proxies with cURL. The full error traceback looks like the following:

curl: (60) schannel: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted.
More details here: http://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it.

This error happens when cURL attempts to request a web page over the HTTPs protocol with a proxy server that doesn't have a valid TLS certificate. Hence, it fails to establish a secure connection.

To solve the cURL (60) error, you can use a proxy that has a valid TLS certificate to support the HTTPs protocol. Alternatively, you can omit establishing the secure connection by adding the -k cURL option:

curl -x http://proxy_domain.com:proxy_port http://httpbin.dev/ip -k

For further details on proxies, including their types and best practices when choosing a proxy, refer to our introduction guide.

The Complete Guide To Using Proxies For Web Scraping

Introduction to proxy usage in web scraping. What types of proxies are there? How to evaluate proxy providers and avoid common issues.

The Complete Guide To Using Proxies For Web Scraping

Related Articles

Advanced Proxy Connection Optimization Techniques

Master advanced proxy optimization with TCP connection pooling, TLS fingerprinting, DNS caching, and HTTP/2 multiplexing for maximum performance.

PROXIES
Advanced Proxy Connection Optimization Techniques

How to Stop Wasting Money on Proxies

Learn actionable techniques to slash proxy spending in web scraping projects without sacrificing reliability or scale.

PROXIES
How to Stop Wasting Money on Proxies

HTTPS vs. SOCKS Proxies

A deep dive into the key differences between HTTPS and SOCKS proxies, helping you choose the right protocol for your web scraping needs.

PROXIES
HTTPS vs. SOCKS Proxies

Optimize Proxy Bandwidth with Image & CSS Stubbing

Reduce proxy costs by 30-50% through intelligent image and CSS stubbing techniques that eliminate unnecessary resource downloads while preserving functionality.

PROXIES
Optimize Proxy Bandwidth with Image & CSS Stubbing

What Is a Proxy Server?

Understand what proxy servers are, how they work, and how developers can leverage them for efficient, large-scale web scraping.

PROXIES
What Is a Proxy Server?

What is a Reverse Proxy?

Learn what reverse proxies are, how they differ from forward proxies, and their critical role in web infrastructure and web scraping. A deep dive for developers.

PROXIES
What is a Reverse Proxy?