pywaterinfo package
Waterinfo
Utility functions
- exception pywaterinfo.utils.SSLAdditionException[source]
Bases:
ExceptionRaised when the SSL custom CA addition fails
- pywaterinfo.utils.add_ssl_cert(ssl_cert: str)[source]
This routine is a pragmatic solution to add a custom SSL certificate to the certifi store, which urllib needs to connect over https. Use this routine when git you are experiencing an issue with an SSL: CERTIFICATE_VERIFY_FAILED error. This should only be done once for your environment.
For more details, see also : https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error
The ssl certificate should usually be issued by your company, please contact your network administrator.
- Parameters:
ssl_cert (str) – The full path/filename to the SSL certificate file to add
Examples
>>> from pywaterinfo.utils import add_ssl_cert >>> add_ssl_cert("CA-FILE-PATH")