Use Python requests for REST API with JWT_TOKEN

While I can use the REST API webform with JWT_TOKEN with success, I encountered problem with using Python requests. Here is my Python code and error message
import requests
response=requests.get(‘https://localhost:8080/api/applications’, headers={‘Grpc-Metadata-Authorization’: ‘my_secret_token’)
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python2.7/dist-packages/requests/”, line 70, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: (“bad handshake: Error([(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)],)”,)

My question is how to correctly enter the authorization headers with the JWT_TOKEN. Thanks for your help.

I found that you have to add verify=False to the arguments like the following becuase we are not using TLS certificate:
response=requests.get(‘https://localhost:8080/api/applications’, headers={‘Grpc-Metadata-Authorization’: ‘my_secret_token’, verify=False)