Problem with two way SSL connection
Hey, I have got an API that I have to work with. The API is secured by a two way SSL.
I have a pem file and a crt file.
When I connect to the server regularly, using PyOpenSSL I have no problem, here is the code: http://
But, because this is an HTTP API and I want to get rid of the http protocol, well, I have implemented an opener for it,
the code somehow modified is here: http://
but when I run the second code, I get the following error:
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "network.py", line 37, in https_open
return self.do_
File "/usr/lib/
h.request(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.
OpenSSL.SSL.Error: [('SSL routines', 'SSL_write', 'uninitialized')]
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyOpenSSL Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask apache for more information if necessary.