0

I am trying to hit a URL but getting error as given below:

Code :

HttpRequest req= new HttpRequest();
req.setMethod('GET');

req.setHeader('Authorization','yu8989i');
req.setHeader('S-CD', 'TRS');
req.setHeader('S-RR-B', 'Rrtyfh-opi');
req.setHeader('S-CDID', 'uinjn');
req.setHeader('CCuid', '28998789');

Http http = new Http();       
String url = 'hURl(Client-Specific)';
req.setEndpoint(url );
HttpResponse res = http.send(req);
Integer statusCode = res.getStatusCode();
System.debug('statusCode '+statusCode);
String str = res.getBody();

system.debug('res: '+str);

Error:

System.CalloutException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target