Highlighted

CFHTTP (HTTPS) "unable to find valid certification path to requested target"

New Here ,
Jun 05, 2015

Copy link to clipboard

Copied


Hello,

I'm using ColdFusion Standard 11,0,05,293506 on Windows Server 2012. I get the following error message when trying to connect to a specific site over HTTPS using CFHTTP:

I/O Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I followed a suggestion found elsewhere, where I imported the certificate into the cacerts store and that works....for one day. I've been working on this for 3 days and every day I'm back to that same error until I re-import the certificate. The certificate is supposed to be valid from 2/1/15 - 2/1/17, so I have no idea what's going on here. Any insight would be greatly appreciated.

As an aside, I'm trying to do Azure AD authentication using oAuth 2.0. I tried the new CFOAUTH tag and it worked great with Facebook, but errors out on the Access Token portion with Azure AD (retrieves the Authorization Code just fine though). That is why I'm using CFHTTP. CFHTTP works great when I'm not getting the certificate error, but I can't be updating cacerts every day.

Thanks in advance for any help.

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CFHTTP (HTTPS) "unable to find valid certification path to requested target"

New Here ,
Jun 05, 2015

Copy link to clipboard

Copied


Hello,

I'm using ColdFusion Standard 11,0,05,293506 on Windows Server 2012. I get the following error message when trying to connect to a specific site over HTTPS using CFHTTP:

I/O Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I followed a suggestion found elsewhere, where I imported the certificate into the cacerts store and that works....for one day. I've been working on this for 3 days and every day I'm back to that same error until I re-import the certificate. The certificate is supposed to be valid from 2/1/15 - 2/1/17, so I have no idea what's going on here. Any insight would be greatly appreciated.

As an aside, I'm trying to do Azure AD authentication using oAuth 2.0. I tried the new CFOAUTH tag and it worked great with Facebook, but errors out on the Access Token portion with Azure AD (retrieves the Authorization Code just fine though). That is why I'm using CFHTTP. CFHTTP works great when I'm not getting the certificate error, but I can't be updating cacerts every day.

Thanks in advance for any help.

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 05, 2015 0

Have something to add?

Join the conversation