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

Refactored SSL Handling #73

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Liquid369
Copy link
Member

Users have been reporting issues with their SSL certificates failing to verify. After research we have found that some packages are handled differently now with 3.10 vs 3.9 python versions. This makes a need for how we were handling things before for users to install an extra python package which is not suitable for them. Which is also why it was not caught in testing as we have these packages installed already in our environments.

We are now importing the certifi package and using that to grab the SSL root certificate paths to pass approrpiately to verify against root certs.

I have changed the way we are handling the HTTP/HTTPS connections for the RPC client because it is also handled in the bitcoin json rpc library we are using causing some confusion with our use of self.httpConnection and then AuthServiceProxy having similar check in its init function.

Lastly, when testing after this I had some crashing from the response time calculation for trying to add a 'None' type by a float value, and so incase of 'None' we now set it to a default float value of 0.0 to resolve this.

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

Successfully merging this pull request may close these issues.

1 participant