I am using teller.io API in a project of mine their API uses TLS client certificates. I have not found a way to pass my client certificate with ajax. here is my current javascript code (currently not giving it my certificate)
$.ajax({
type: "GET",
url: TELLERurl,
username: token,
password: '',
success: function(data){
console.log(data);
}
})
for testing I got it to work in Python:
response = requests.get(url, auth=HTTPBasicAuth(token, ''), cert=('certificate.pem', 'private_key.pem'))
json = json.loads(response.text)
print(json)
certificate.pem and private_key.pem are files given to me by teller
here is the Teller API docs