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

OpenSSL Error #75

Closed
juga0 opened this issue Jan 29, 2018 · 11 comments
Closed

OpenSSL Error #75

juga0 opened this issue Jan 29, 2018 · 11 comments
Assignees
Labels

Comments

@juga0
Copy link
Collaborator

juga0 commented Jan 29, 2018

scan gives OpenSSL error for some relays:
2018-01-29T14:34:57+0000 [WARN]: Download failed for router $6F33E92A67EC038B559415AC56C860075F6D287F: <twisted.python.failure.Failure twisted.web._newclient.ResponseNeverReceived: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]>]>.

Check the TLS options in the fetch agent

@juga0 juga0 added the bug label Jan 29, 2018
@juga0 juga0 self-assigned this Jan 29, 2018
@juga0
Copy link
Collaborator Author

juga0 commented Feb 2, 2018

The agent is defined in https://github.com/juga0/bwscanner/blob/develop/bwscanner/fetcher.py#L76.

In theory twisted should be using the certificates system path in trustRoot (https://twistedmatrix.com/documents/17.1.0/api/twisted.web.client.BrowserLikePolicyForHTTPS.html)

@meejah
Copy link
Member

meejah commented Feb 2, 2018

What OS are you running this on?

@juga0
Copy link
Collaborator Author

juga0 commented Feb 2, 2018

Debian, so cacert is missing, but that shouldn't be the issue.

@meejah
Copy link
Member

meejah commented Feb 2, 2018

Another thing to try would be the now built-in txtorcon agent, available via Tor.web_agent() or Circuit.web_agent() (the latter uses the given circuit only).

@meejah
Copy link
Member

meejah commented Feb 2, 2018

Yeah IME Debian works fine. You could try installing certifi (Python package) but .. shouldn't need to?

@juga0
Copy link
Collaborator Author

juga0 commented Feb 2, 2018

Actually i tried SSL_CERT_FILE="$(python -m certifi)" as explained in twisted/treq#94, and then i didn't get this error, but still this shouldn't be needed...

@juga0
Copy link
Collaborator Author

juga0 commented Feb 2, 2018

Running Circuit.web_agent() in this example https://github.com/meejah/txtorcon/blob/master/examples/web_client_custom_circuit.py#L47 also gives certificate error.
Maybe twisted version we are using here (16.0.2)?. I'll try with others.

@juga0
Copy link
Collaborator Author

juga0 commented Feb 2, 2018

Last version also gives the error.

@meejah
Copy link
Member

meejah commented Feb 2, 2018

Do you have the "ca-certificates" package installed in Debian?

@juga0
Copy link
Collaborator Author

juga0 commented Feb 3, 2018

Yes.

@juga0
Copy link
Collaborator Author

juga0 commented Feb 3, 2018

Upgrading pyOpenSSL to 17.5.0 seems to solve the issue.

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

No branches or pull requests

2 participants