jira-cli
jira-cli copied to clipboard
Allow usage with self-signed SSL certificates
This is described in #11
When jira cli is used with a self hosted instance which also has a self signed certificate, an error will be raised from the underlying requests library. This error is now gracefully handled and the user is prompted to enter the path the root certificate.
Example usage:
$ jira-cli list projects
WARNING:root:HTTPSConnectionPool(host='jira.mycompany.com', port=443): Max retries exceeded with url:
/rest/api/2/field (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines',
'ssl3_get_server_certificate', 'certificate verify failed')],)",),)) while doing GET
https://jira.office.noris.de/rest/api/2/field [{'params': None, 'headers': {'Connection': 'keep-alive',
'Cache-Control': 'no-cache', 'Accept': 'application/json,*.*;q=0.9', 'X-Atlassian-Token': 'no-check',
'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.18.2', 'Content-Type':
'application/json'}}]
... trimmed ...
invalid SSL certificate
path to root certificate:/home/oz123/certs/ca.crt
... list of projects ...
https://github.com/mattbucci/apache-php-with-extensions-for-laravel/pull/8