NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Errors and troubleshooting

How do I fix SSL certificate errors in scrapers?

Find out which check failed, then fix that cause: an outdated certificate store, a hostname mismatch, a missing intermediate certificate, or a proxy that rewrites TLS.

Diagnose before you fix

An SSL (TLS) error means your client could not verify the server's certificate, or the handshake failed. The message tells you which check broke: "unable to get local issuer certificate" points at the certificate chain or your CA store, "hostname mismatch" at the name, "certificate has expired" at the date, and "wrong version number" or "handshake failure" at the protocol or a proxy in between. Turning verification off makes the error disappear, but it also removes the protection against someone reading or changing your traffic, so treat that as a last resort for isolated testing only.

Inspect the certificate from the command line

# shows the chain the server sends and the verification result
openssl s_client -connect shop.example.com:443 -servername shop.example.com -showcerts </dev/null | grep -E "s:|i:|Verify return code"

"Verify return code: 0 (ok)" means the chain is fine from that machine. A non-zero code names the problem. Run the same command on the machine where the scraper fails; differences point to the local CA store.

Common causes and fixes

Outdated CA certificates

Old operating systems, minimal containers and some Python installs carry an outdated root store. Update the system package (ca-certificates on Debian and Ubuntu) and, for Python, the certifi package. On macOS with python.org builds, run the bundled "Install Certificates" script.

Missing intermediate certificate

Some servers send only their own certificate and not the intermediate that links it to a root. Browsers often fill the gap from cache; scripts do not. You can add the intermediate to a custom bundle and point your client at it, as shown below.

Hostname mismatch

You connected by IP address, to a bare domain whose certificate only covers www, or with a wrong Host header. Use the hostname the certificate names, and make sure SNI is sent (modern clients do it automatically).

Inspecting proxies

Corporate proxies and some debugging tools decrypt and re-encrypt traffic with their own certificate. Your client sees a certificate signed by an unknown CA. Add that proxy's CA certificate to a bundle you trust explicitly, only on machines where the proxy is expected.

Old TLS versions

Legacy servers that only speak old TLS versions fail against modern clients that refuse them. That is a server problem; you can lower the minimum version for that host only, if you accept the risk.

Trusting a custom bundle in code

import requests

bundle = "/etc/scraper/extra-chain.pem"   # system roots plus the missing intermediate
resp = requests.get("https://shop.example.com/catalog", verify=bundle, timeout=20)
print(resp.status_code)

In Node.js, the NODE_EXTRA_CA_CERTS environment variable adds certificates without replacing the default store. Both approaches keep verification on.

TLS and bot detection

A separate issue sometimes looks like an SSL problem: sites that read your TLS handshake to recognise scripted clients. They do not cause certificate errors, but they can reset connections or serve challenge pages to clients whose handshake does not look like a browser's. That is covered under TLS fingerprinting and JA3. If the error appears only on one protected site and never on others, suspect that rather than certificates.

Calling the GateSolver API

The API at https://gatesolver.com uses a standard publicly trusted certificate. If your client cannot verify it, the cause is almost always an outdated CA store or an inspecting proxy on your side, and the fixes above apply. Keep verification on for API calls: they carry your key. More on HTTP headers and proxies helps when the problem sits in the middle of the path.

Common questions

Is it safe to set verify=False?

Only for a quick local test. In production it exposes your traffic and credentials to interception.

Why does the site work in my browser but not in Python?

Browsers fetch missing intermediates and have a fresher root store; your script may lack both.

How do I update certificates in a Docker image?

Install or update the ca-certificates package in the image, and update certifi for Python.

What does "unable to get local issuer certificate" mean?

Your client could not build a chain to a trusted root, usually because of a missing intermediate or an old store.

Can my proxy cause SSL errors?

Yes, if it inspects traffic with its own certificate; trust its CA explicitly or use a non-inspecting proxy.

Keep reading