I use mailgun to send email, but from the last day it shows an error during the POST request when sending email api, as shown below. I am using java / spring / AWS for my web application. I tried to restart the application and check if the certificate is already in the trust store, but we never generated trust store keys.
com.mashape.unirest.http.exceptions.UnirestException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: Failed to create PKIX path: sun.security.provider.certpath.SunCertPathBuilderException: cannot find a valid certification path to the requested target at com.mashape.unirest.http.HttpClientHelper.request (HttpClientHelper.java:143) at com.mashape.unirest.request.BaseRequest.asJson (BaseRequest.java:68)
source
share