Hi there,
We use a Let’s Encrypt certificate for our HTTPS API server. It works fine when called from several different systems, but we now got stuck trying to make API calls from a Salesforce app we are developing.
I know Salesforce accepts Let’s Encrypt certificates:
SSL labs test report good results.
Details below.
My domain is:
I ran this command:
HttpRequest req = new HttpRequest();
req.setEndpoint(’’);
req.setMethod(‘GET’);
req.setTimeout(60000);
Http http = new Http();
HttpResponse res = http.send(req);
It produced this output:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
My web server is (include version):
Custom API server based on Java’s NanoHTTPD
The operating system my web server runs on is (include version): Ubuntu 14.04.6
My hosting provider, if applicable, is: AWS
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 0.28.0
Any idea on what may be going on here?
Thanks in advance!
Daniele