Hello,
I am new to JIRA. I need to connect to JIRA and do some queries. The problem is the begging, I can't connect.
The code that I use is the next one:
from jira import JIRA
jira = JIRA(options={'server':'http://...'}, basic_auth=(jira_user, jira_password))
and I get an error asking for a certificate (...certificate_verify_failed...)
So, I found in Stack Overflow that you can add a certificate. So, I went to the browser, save the certificate that it is used as a file and then add the certificate to the JIRA object:
from jira import JIRA
jira = JIRA(options={'server':'http://...', 'verify':'path_to_certificate'}, basic_auth=(jira_user, jira_password))
Unfortunately, didn't work.
I also tried to set 'verify' to false but also not working...
Any recommendations?
Thank you very much
What is the error you are now receiving? Is your Jira instance a server or cloud instance? I can connect to a server instance using the exact same method that you are employing.
I get an error 'SSL CERTIFICATE_VERIFY_FAILED'. I am using a Jira server. Nothing seams to work...
For example, if I go with Firefox to the page and log in with the credentials it worked. Then, for example I use the api roots in the browser: http://customdomain/api/2/issue/JRA-1513 and I get the JSON in the browser. Which means that I have the rights to use the api but I am not able whit the python script. It always give me the same certificate error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally I fixed it! :)
I had to installed
pip install python-certifi-win32
and then it works! It was just a certification problem.
Thank you for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To be sure we're using the same approach to saving and referencing the certificate, here is how I saved my cert:
I then reference it in my Python script using forward slashes, even though I'm on Windows, so the backslash won't act as a delimited, e.g.
cert_file = 'c:/mypath/SCRS-CA.crt'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, after typing my response I now see that you solved it by installing a module. Glad you got it working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Borja P ,
please reopen your question again at https://community.developer.atlassian.com/. There is the right audience to assist.
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.