jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Allow usage with self-signed SSL certificates

Open oz123 opened this issue 7 years ago • 1 comments

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 ...

This change is Reviewable

oz123 avatar Mar 13 '18 10:03 oz123

https://github.com/mattbucci/apache-php-with-extensions-for-laravel/pull/8

thatsk avatar Aug 18 '20 07:08 thatsk