zabbix / python-zabbix-utils

Python library "zabbix-utils"
MIT License
114 stars 16 forks source link

Add custom CA path for certificate validation #16

Closed lucaCigarini closed 2 months ago

lucaCigarini commented 5 months ago

Hello,

Zabbix API class allows a developer to enforce certificate validation through validate_certs parameter.

However, it's not clear where CAs will be found. Furthermore, there's no way of specifying a custom path to a CA like requests do with verify parameter.

Could it be possible to add a way to provide a path to a custom CA?

Thank you!

aiantsen commented 2 months ago

Hi @lucaCigarini, thank you for your suggestion and your attention to the library.

A way to provide a custom CA and other certificate related settings has been implemented in v2.0.1.

Please take a look at a new library version. We hope it will be usefull for your and other library users.