Skip to content

Commit

Permalink
[fix] SSL error, bad path for certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
matlink committed Apr 9, 2016
1 parent d622d27 commit 609a45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext_libs/googleplay_api/googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import googleplay_pb2
import config

ssl_verify=True
ssl_verify="/etc/ssl/certs/ca-certificates.crt"
class LoginError(Exception):
def __init__(self, value):
self.value = value
Expand Down

3 comments on commit 609a45f

@ChrisMcMStone
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This raises a 'no such file' OpenSSL.SSL.Error on Fedora. Reverting the line back to "ssl_verify=True" fixed it for me.

@matlink
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we didn't found a perfect solution yet.
We could for example check if the crt file exists and if not try with True

@reox
Copy link

@reox reox commented on 609a45f Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used some very old version of the googleplay_api, and had also problems with the verification there. I stumbled across this: http://bugs.python.org/issue13655 and also this: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl

I use certifi now, as i need a solution that works on windows too... for *nix systems I would try the paths that are posted here: http://bugs.python.org/issue13655#msg192601

Please sign in to comment.