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

httplib2.SSLHandshakeError: Certificate verify failed #15

Open
huogerac opened this issue Nov 28, 2013 · 0 comments
Open

httplib2.SSLHandshakeError: Certificate verify failed #15

huogerac opened this issue Nov 28, 2013 · 0 comments

Comments

@huogerac
Copy link

I'm using restfulie to make request on realtimeregister API [1]:

params = {'login_handle': 'djenie-ote', 'login_pass': 'mypassword'}
resp = Restfulie.at("https://http.api.yoursrs-ote.com/v1//domains/newdomain.com/check").post(**params).resource()

BUT I'm receiving an error [****]:
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:480: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Note:
I've changed the restfulie.processor.py (as I saw on stackoverflow [2] )
and it worked:

from self.http = httplib2.Http()
to self.http = httplib2.Http(".cache", disable_ssl_certificate_validation=True)

Is it possible to add some command on restfulie DSL to disable the SSL?
If you need more detail or in case I can help in something.
Please, let me know, once I'd love to keep using restfulie-py on our project.

Cheers,
Roger

[1] https://dm.yoursrs-ote.com/
[2] http://stackoverflow.com/questions/13707606/httplib2-ssl-error

[****]

resp = Restfulie.at("https://http.api.yoursrs-ote.com/v1//domains/roger123aaa.com/check").post(**params).resource()
Traceback (most recent call last):
File "", line 1, in
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/request.py", line 25, in call
return self._process_flow(kwargs)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/request.py", line 38, in _process_flow
return Parser(procs).follow(self.config, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/parser.py", line 11, in follow
result = processor.execute(self, request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/processor.py", line 21, in execute
return chain.follow(request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/parser.py", line 11, in follow
result = processor.execute(self, request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/processor.py", line 83, in execute
result = chain.follow(request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/parser.py", line 11, in follow
result = processor.execute(self, request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/processor.py", line 65, in execute
return chain.follow(request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/parser.py", line 11, in follow
result = processor.execute(self, request, env)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/restfulie/processor.py", line 42, in execute
env.get("body"), request.headers)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/httplib2/init.py", line 1570, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/httplib2/init.py", line 1317, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/httplib2/init.py", line 1252, in _conn_request
conn.connect()
File "/pydev/roger/iame_cms/lib/python2.6/site-packages/httplib2/init.py", line 1044, in connect
raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:480: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

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

1 participant