Getting HS API Error

Hello Team,

Recently, noticed that HS API is started throwing SSL connect error as follows:

HubSpot API Error - HTTP Code 500:
Can't connect to api.hubapi.com:443 (certificate verify failed)
SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

Could you please help me here to resolve this issue?

Hey, @aolvikash :waving_hand: Here’s the announcement and some next steps https://community.hubspot.com/t5/Developer-Announcements/SSL-Certificate-Migration-Notice/td-p/944428

Best,

Jaycee

Hey Jaycee,

Thanks a lot for your help!!

I have app on Ubuntu server which is using Perl script to do API call to hubspot, Do you have any suggestion how should i go forward to fix this SSL sertificate issue, That will be really great, looking forward to your help!

I belive we need to use below opton to apply API certs:

my $client = REST::Client->new();
$client->getUseragent()->ssl_opts(
 SSL_cert_file => 'cert.pem',
 SSL_key_file => 'key.pem'
);

OR just the ca fileas follows
$client->getUseragent()->ssl_opts(
 SSL_ca_file => 'ca.key',
);

But my question is form where we can get the certs pem and keys or ca key ?