Error message :PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Hello all please see the above exception.I am getting a callout exception .Is any pointer on why the exception is ?
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndpoint('https://xxxxx.stg.xxx.com/subscription/api/v1/accounts/');
Oauth1 reuest=new Oauth1();
reuest.sign(req);//This method generates me header
HttpResponse res = h.send(req);
System.debug('RESPONSE BODY'+ res.getBody());