I know that I was late for this answer, but I hope this helps someone in the future.
Why you should not turn off verification
Although disabling certificate verification is the easiest "solution", it is not recommended. Essentially, it says: βI donβt care if I trust you or not, Iβll send you all my information anyway.β This opens you up for the Man in the Middle attack.
If you connect to your company's Jira server and it has a certificate for TLS / SSL, you should check this. I would ask your IT department where this certificate is. This is possible in some kind of root certificate for your company.
If you connect to the server in Chrome (for example), it should show a lock in the left corner of the address bar if it is protected via TLS / SSL.
You can Right-Click that lock β Details β View Certificate in Chrome.
OK, so what should I do?
Provide the required certificate for the verify option directly.
jira-python uses Requests for HTTP- jira-python (see documentation) . And in accordance with the Requests documentation, you can specify the path to the certificate file in verify .
Thus, you can provide your company's root certificate for verify as follows:
jira_options = { 'server': jira_server_name, 'verify': 'path/to/company/root/certificate', }
If you are using a Windows computer (a safe guess?), This root certificate is stored in the registry, and the best way to get it is to use wincertstore .
source share