function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Elsa RousselElsa Roussel 

Unknow SSL certificat => PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path

I need to retreive an SSL flow (https://myflow.com/)

Our client had to change his certificate to one which issuer is know by Salesforce [geotrustglobalca]
I add the flow (https://myflow.com/) in the remote site settings.
But i still have the error folowing when trying to reitrive any information :
"System.CalloutException: sun.security.validator.ValidatorException: 
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"


If i analyze the SSL cerytificate using https://www.ssllabs.com, the only thing that's different from the doc is the issuer name :
in the doc i have something like [ Issuer: CN=GeoTrust Global CA, O=GeoTrust Inc., C=US ],
while i have [ Issuer : GeoTrust DV SSL CA ]...

Has anyone got an idea of what's going on ?
Is that Salesforce just doesn't recognise the certificat because the spelling is different ?
Or is there other settings to do that i'm unaware of ?

Thank you !

PS: I Have already check the SF doc on remote site connections and both-way auth...
Andy BoettcherAndy Boettcher
Hi Elsa!

I see this error A LOT come up on the boards - this link seems to help many people asking:

https://developer.salesforce.com/forums/?id=906F00000008lzhIAA