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

Connection failed : SSL verify callback #10

Open
OlivierFrancais opened this issue Nov 27, 2017 · 1 comment
Open

Connection failed : SSL verify callback #10

OlivierFrancais opened this issue Nov 27, 2017 · 1 comment

Comments

@OlivierFrancais
Copy link

OlivierFrancais commented Nov 27, 2017

Hi
I try to connect your example code with estreamer, but I've an issue with SSL connection :

+---------------+-----------+-------------------+----------------+
| name          | version   | author            | description    |
+---------------+-----------+-------------------+----------------+
| MSSQLPlugin   | 0.1       | Ted Papaioannou   | MSSQL writer   |
| PcapPlugin    | 0.1       | Sean O'Hara       | pcap writer    |
+---------------+-----------+-------------------+----------------+

Traceback (most recent call last):
  File "client.py", line 79, in <module>
    sys.exit(main())
  File "client.py", line 49, in main
    basedir + "client.crt", basedir + "priv.key") as ec:
  File "/home/ofrancai/dev/estreamer/local/lib/python2.7/site-packages/estreamer-0.1.1-py2.7.egg/estreamer/streamer.py", line 55, in __enter__
    self.ctx.set_verify(SSL.VERIFY_PEER, self.verify)
  File "/home/ofrancai/dev/estreamer/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 969, in set_verify
    raise TypeError("callback must be callable")
TypeError: callback must be callable

From the documentation of PyOpenSSL set_verify want a callback in second parameter and not a pem file path.

I'm doing something obviously wrong ?

@spohara79
Copy link
Owner

Should be pointing to the validate_cert. I'll update and you can pull the newest to test

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

2 participants