I am new to how to use Janrain service, currently, I am getting certification-related issue.
I tried as mentioned in the below link, but it could not solve.
Certificate for <localhost> doesn't match any of the subject alternative names
here basUrl is "https://rpxnow.com/api/v2/"
http.request(baseUrl, GET, TEXT) { req ->
uri.path = 'auth_info'
uri.query = [format: 'json', apiKey: apiKey, token: token]
headers.'User-Agent' = "Mozilla/5.0 Firefox/3.0.4"
headers.Accept = 'application/json'
log.debug("Janrain Auth URL:" + uri)
response.success = { resp, reader ->
assert resp.statusLine.statusCode == 200
jsonResponse = reader.text
JSONObject jsonObj = new JSONObject(jsonResponse)
jsonResponse = grails.converters.JSON.parse(jsonResponse)
}
log.debug("Response:" + response)
}
Expected: it should give 200 status
Actual:
javax.net.ssl.SSLException: Certificate for doesn't match any of the subject alternative names: [*.janrain.com, *.rpxstaging.com, *.rpxtesting.com, *.janrainbackplane.com, *.janrainsso.com, *.rpxnow.com, *.rpxtraining.com, *.janrainconsole.com, *.engage-dev.janrain.com]