I’m trying to debug… This is the most specific error:
Unexpected mailgun response. Expected a validate object (structure) but
received: [{"charset":"","text":true,"errordetail":"Unknown host:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target","filecontent":"Connection
Failure","responseheader":{},"header":"","statuscode":"Connection Failure.
Status code unavailable.","mimetype":"Unable to determine MIME type of
file."}]
I don’t know cfmailgun, but can you please try to downgrade your httpclient
related jars to be version 4.3? (you might have the latest, version 4.5)
we had other cfhttp issue with lucee and those version 4.3 jars was the
only solution we found… please see
backup those original 3 jars from your Lucee ‘lib’ folder to other
directory outside Lucee lib…
stop Lucee, then replace the jars files with version 4.3 in the Lucee lib
folder.
restart Lucee and try cfmailgun again
if it is still not working, roll back to the jars you backup…
Hello,
The component httpclient I updated in December 2015 when I did the clean
install of Lucee (I also updated sun-mail.jar). Today, for safety, I
updated again httpclient to 4.5.1 version. The problem is not solved.
OS: Windows 2008R2 with IIS7
Application server: Lucee 4.5.2.018 final
Servlet Container: Apache Tomcat/8.0.28
Java: 1.8.0_66 (Oracle Corporation) 64bit
I tried just installing the certificate.cer that I grabbed from Internet Explorer, but maybe this is the wrong approach?
I still got the error:
Error Detail:
Unknown host: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
And then I read your genius answer, and now everything works.
By the way, I love the Lucee Admin section: “Services - SSL Certificates”
It makes installing certificates a breeze. Goodbye keytool.exe!
I recovered the last post from a late post to the google-group; perhaps the original thread got split in the migration and your original answer is somewhere else in the archive?
Dominic. I have added this answer & a reference to your original solution, to a StackOverflow question that I created, a few months ago. So hopefully, this will now reach a wider audience.