I am able to fix this error with the help of this answer "PKIX path building failed" and "unable to find valid certification path to requested target"