Hi All,
We are trying to connect to Open Text REST API's, however, we are getting error while trying to authenticate the ID.
The code which we are using and the error details are as below.
Code :
authenticate() {
// Set up the ajax request
var otcsticket = '';
$.ajax({
// Authenticate is a POST
type: "POST",
url:"/api/v1/auth",
data: { username: user, password: pass },
contentType: "application/json; charset=utf-8",
}).done(function (data) {
var val = JSON.parse(data);
alert("setting otcsticket to: " + val["ticket"]);
// Store the ticket for later use.
otcsticket = val["ticket"];
}).fail( function( error ) {
console.log(error)
alert("Bad thing happened! " + error.statusText);
})
}
Error : In Edge
Error : In Chrome
net::ERR_CERT_DATE_INVALID