Certificate verification issues when running ./nb-dt-import.py #157
-
The environment: Ubuntu 24.04 LTS, Netbox 4.1.5, Python 3.12 Netbox is running properly Still when I run ./nb-dt-import.py the following errors are received (venv) ipamadmin@netbox:~/Device-Type-Library-Import$ ./nb-dt-import.py During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Any ideas on how to solve this would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
SOLVED: I was able to solve this by appending the root-ca bundle of my CA to certifi's cacert.pem That being said: Why python and other programs are not simply using the certificate store of the SO is beyond me. The OS has a certstore and ways to access that store. If you need something sandboxed, make a copy of the store and create a way to keep your copy up to date. Simple, elegant and the user/sysadmin only has to keep 1 store up to date instead of gonig on an hours/dayslong goosehunt... Do we ever learn? |
Beta Was this translation helpful? Give feedback.
SOLVED: I was able to solve this by appending the root-ca bundle of my CA to certifi's cacert.pem
That being said: Why python and other programs are not simply using the certificate store of the SO is beyond me. The OS has a certstore and ways to access that store. If you need something sandboxed, make a copy of the store and create a way to keep your copy up to date. Simple, elegant and the user/sysadmin only has to keep 1 store up to date instead of gonig on an hours/dayslong goosehunt... Do we ever learn?