APIs & Integrations

jsihota
Member

Validation Exception sending HTTP POST data

Hi,
I actually have an issue with the end point I’m using to send data to hubspot. I’m getting a Validator Exception on the handshake using endpoint: https://api.hubapi.com/deals/v1/deal?hapikey=***********************

Here is the exception using the post:

“POST /deals/v1/deal?hapikey=************************ HTTP/1.1[\r][\n]”
“Content-Type: application/urlencoded[\r][\n]”
“User-Agent: Jakarta Commons-HttpClient/2.0beta2[\r][\n]”
“Host: api.hubapi.com[\r][\n]”
"Content-Length: 2499[\r][\n]"
Error sending HTTP ADF
Error sending HTTP ADF
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target - 165e90c90c03
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Do I need to add the hubspot cert to the truststore for this to work?

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Validation Exception sending HTTP POST data

Hi @jsihota

You shouldn’t need to install a HubSpot specific certificate, but you may need to update your root certificate authorities.

You can verify our SSL certificate and see the certificate chain here:
https://www.digicert.com/help/?host=api.hubapi.com

0 Upvotes