How to work with api if the site requires an SSL certificate

0 votes

My DevOps API is here. User stories and tasks are created in one DevOps using data from another. The function to retrieve data will be below. However, recently we were instructed to install an SSL certificate, and as a result, only the company's VPN is now available for access to devops. As a result, such a mistake exists right now. I have no idea where to go.

raise SSLError(e, request=request)

requests.exceptions.SSLError: HTTPSConnectionPool(host='devops.xregernd.local', port=443): Max retries exceeded with url: /Support/Maergt/_apis/wit/workitems/$User%20Story?api-version=5.1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)')))

def GetUSInfo(id_):

url_get_m = f'http://devops.xpa123re.com:8181/support/Mat/_apis/wit/workitems/{id_}?api-version=5.1'

r = requests.get(url_get_m,
    auth=(user_name_x, token_x))
res = r.json()

workType = res['fields']['System.WorkItemType']

if workType != "User Story":
    return False, False, False, "Not a User Story"
id_ = res['id']
title = res['fields']['System.Title']
description = res['fields']['System.Description']
return id_, title, description, "OK"

Dec 15, 2022 in DevOps & Agile by Edureka
• 12,690 points
405 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In DevOps & Agile

0 votes
1 answer
+5 votes
1 answer

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by Atul
• 10,240 points
3,472 views
+1 vote
3 answers

How can I connect an app with an aws ec2 instance?

This is how you deploy a web ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Hannah
• 18,520 points
2,318 views
0 votes
1 answer

How to set up a VM with KVM/qemu without VitualBox using Vagrant

Start the vagrant box using: vagrant up --provider=kvm But ...READ MORE

answered Apr 11, 2018 in DevOps & Agile by ajs3033
• 7,300 points
2,404 views
0 votes
1 answer

to check file has the same value or not i.e comparing file with stat module.

Try the following script: Do the second time ...READ MORE

answered May 1, 2018 in DevOps & Agile by shubham
• 7,340 points
4,174 views
0 votes
1 answer

How to change state of TFS 2015 if build has warnings?

To access the TFS Build Definition can ...READ MORE

answered May 4, 2018 in DevOps & Agile by ajs3033
• 7,300 points
743 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,929 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,039 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP