Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

SSL connect failure when searching for policy file. #3

Open
ghost opened this issue Feb 2, 2018 · 11 comments
Open

SSL connect failure when searching for policy file. #3

ghost opened this issue Feb 2, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Feb 2, 2018

Error: SSL error while connecting to the HTTPS server: TLSV1_ALERT_INTERNAL_ERROR.

@aykevl
Copy link
Owner

aykevl commented Feb 2, 2018

On which domain do you have this issue?

@ghost ghost changed the title SSL connect faulure when searching for policy file. SSL connect failure when searching for policy file. Feb 2, 2018
@ghost
Copy link
Author

ghost commented Feb 2, 2018

raidensnakesden.net This is the server I'm testing. The DNS records work just fine. It's when it comes to the policy file.

@aykevl
Copy link
Owner

aykevl commented Mar 23, 2018

Sorry for the long delay.
The report says the following (with a few updates today):

Policy: https://mta-sts.raidensnakesden.net/.well-known/mta-sts.txt

Error: Could not connect to the HTTPS server: timed out.

This means that the URL is unresolvable. This is easy to test: it also times out in a browser.
So this means you'll have to get the URL to work, probably by fixing the HTTPS server.

@aykevl aykevl closed this as completed Mar 23, 2018
@ghost
Copy link
Author

ghost commented Mar 23, 2018

apologies the datacentre were doing some network updates and the server lost connection for about an hour.

@aykevl
Copy link
Owner

aykevl commented Mar 23, 2018

Ah I see, that's unfortunate. Yeah, now the URL resolves in a browser but not in the tool. I'm looking into it.

@ghost
Copy link
Author

ghost commented Mar 23, 2018

yeah not sure why.

@aykevl
Copy link
Owner

aykevl commented Mar 23, 2018

Reopening. I'll look into this later.

@aykevl aykevl reopened this Mar 23, 2018
@aykevl
Copy link
Owner

aykevl commented Jul 4, 2018

Fixed the issue. It's probably a bug in Python 3.5 that has been fixed in Python 3.6. I'm now running the verifier in Python 3.6.

@Raito00
Copy link

Raito00 commented Mar 18, 2021

Whe i test my site the same problem!
Error: Got a non-OK status code from the server: 403.

but when i open with browser all is OK

Policy: https://mta-sts.smiltene.lv/.well-known/mta-sts.txt

Error: Got a non-OK status code from the server: 403.

@klausenbusk
Copy link

Error: Got a non-OK status code from the server: 403.

The issue seems to be the lack of a User-Agent:

import http.client

conn = http.client.HTTPSConnection("mta-sts.smiltene.lv", 443)
conn.request("GET","/.well-known/mta-sts.txt")

r1 = conn.getresponse()
print(r1.status, r1.reason)
r1.read()

conn.request("GET","/.well-known/mta-sts.txt", headers={"user-agent": "something"})
r2 = conn.getresponse()
print(r2.status, r2.reason)
$ python test.py
403 Forbidden
200 OK

@klausenbusk
Copy link

PR opened: #12

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

No branches or pull requests

3 participants