Open malakhalifa0 opened 2 months ago
Hi @malakhalifa0, thanks for the PR! It looks like tests are failing because self.certificate_location is never set. Could you add an optional argument to the init of WattTimeBase for this?
@xginn8 any thoughts on what the default value for that argument should be?
Hi @malakhalifa0, thanks for the PR! It looks like tests are failing because self.certificate_location is never set. Could you add an optional argument to the init of WattTimeBase for this?
@xginn8 any thoughts on what the default value for that argument should be?
Thanks for your feedback! For some reason self.certificate_location wasn't initialised in this branch, merging it with main updated the code properly. Let me know if the tests pass now. Thanks!
Issue #24
Currently, watttime/api.py does not specify custom SSL certificate verification when making requests to the WattTime API, instead, it uses the system defaults. For enhanced security and compatibility with specific certificate requirements, we need to update the function to use a custom certificate location for SSL verification.
This would be really useful in the cases where we would need to trust a specific certificate and would improve the security and compatibility of the API login process.