Link to home
Start Free TrialLog in
Avatar of Paul Konstanski
Paul KonstanskiFlag for United States of America

asked on

Forcing TLS 1.2 to Communicate with Remote API

I just received this notification from MailChimp.

We strongly encourage any developers who are using the MailChimp API to ensure that their software supports negotiating TLS 1.2 connections, and to coordinate with their system administrators to update software to take advantage of newer TLS versions. In addition, we recommend proactively switching over to TLS 1.2 when communicating with MailChimp’s API by modifying your API client software to enforce TLS 1.2 negotiation.

I have written some code in PHP that makes an API call to MailChimp. I'm not sure how to tell or know if I am using TLS 1.2 to communicate with their API.

How does one make sure you are or find out what protocol you are using?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

If you are using PHP cURL, you need to be using PHP 5.6 or newer to have the correct TLS versions available.
Avatar of Paul Konstanski

ASKER

I am using PHP 7.0 so I should be fine on that front.

So is it a setting that needs to be set? (e.g. in the php.ini or something).
Or what is it that I need to do to insure that I am using a specific TLS version?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the excellent advice. I have two servers that access MailChimp. One is running PhP 5.4, the other is running 7.0. Mailchimp is probably seeing the one running 5.4 and giving me that warning in light of that. I will be phasing out that server in the next two weeks so that should take care of it.

Thanks again. You guys are great with your advice. Keeps me coming back to Experts Exchange.