From 492aa32da59a3415f788134262d69e42171cee1d Mon Sep 17 00:00:00 2001 From: Chad Edge Date: Wed, 17 Oct 2018 11:02:46 -0700 Subject: [PATCH] Updating to TLS 1.2 per Apple requirements Apple has reached out to our organization and requested that we switch to 1.2 of TLS --- src/PublisherAPI/Curl.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PublisherAPI/Curl.php b/src/PublisherAPI/Curl.php index 70d9b3a..9e103f6 100644 --- a/src/PublisherAPI/Curl.php +++ b/src/PublisherAPI/Curl.php @@ -238,6 +238,10 @@ public function post($path, Array $path_args, Array $data = []) { 'Authorization' => $this->auth($string) ] ); + + // Set to use TLS 1.2 + $this->client->setOpt(CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); + // Send POST request. return $this->request($contents); }