title: getting unable to find valid certification path to requested target calling an https public api
body: <p>I am trying to use RestTemplate to call a public api from a bank to get exchange rate.</p>
  <p><a href="https://api.bnm.gov.my/public/exchange-rate/USD/date/2020-06-25?session=1700&amp;quote=rm" rel="nofollow noreferrer">https://api.bnm.gov.my/public/exchange-rate/USD/date/2020-06-25?session=1700&amp;quote=rm</a></p>
  <p>but when i invoked it via eclipse sts, i am getting the error:</p>
  <p>Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</p>
  <p>please help.</p>
  <p>but its fine when i use postman ...</p>