Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot connect using TLS #220

Open
aradalvand opened this issue Jun 13, 2023 · 5 comments
Open

Error: Cannot connect using TLS #220

aradalvand opened this issue Jun 13, 2023 · 5 comments

Comments

@aradalvand
Copy link

aradalvand commented Jun 13, 2023

I'm trying to submit my site (amademy.com) at hstspreload.org, but I keep getting the following error:

Error: Cannot connect using TLS
We cannot connect to https://amademy.com using TLS ("Get "https://amademy.com\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)").

image

This can't be a duplicate of #43 because I'm not using IPv6 at all.

I also tested the site with testlocal.ly — see the results — which confirmed that the website is in fact accessible from San Francisco and various other locations.

But the site itself is hosted in Iran, and I also tested other Iranian websites (e.g. digikala.com, aparat.com), it yields the same error:

image

I also tried the hstspreload command-line tool, I get this output:

image

Even though the preloadabledomain command confirms that the site meets the requirements:

image

What is going on? Thanks in advance.

@lgarron
Copy link
Collaborator

lgarron commented Jun 13, 2023

You do seem to be using this correctly! Sometimes there are issues with a CDN like Cloudflare blocking certain user agents or IPs by default — any chance the site might be using one of those?

@christhompson or @agl, is this something you'd be able to debug in Google Cloud?

@aradalvand
Copy link
Author

aradalvand commented Jun 14, 2023

Hi @lgarron, thank you for the response.
I'm not sure about the other websites (digikala.com, aparat.com) but mine isn't using a CDN or any kind of a proxy, for that matter, in front of the main server. The DNS A record points directly to the IP of the server.
So, that can't be the problem, I don't think.

@nharper
Copy link
Collaborator

nharper commented Jun 15, 2023

This appears to be an issue where GCP is blocking access to the IP addresses for those domains.

@aradalvand
Copy link
Author

aradalvand commented Jun 15, 2023

This appears to be an issue where GCP is blocking access to the IP addresses for those domains.

Strange... Why would it do that?

@nharper
Copy link
Collaborator

nharper commented Jun 15, 2023

Strange... Why would it do that?

It appears GCP blocks Iranian IP addresses. I don't know why GCP blocks Iranian IP addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants