Skip to content

Commit

Permalink
temp comment out TLS checkings
Browse files Browse the repository at this point in the history
;
'
  • Loading branch information
hlu2 committed Nov 27, 2019
1 parent 03e4b9a commit 91050cb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Core/HttpClients/CurlHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ private function getHeaders($headers){
* Set the SSL certifcate path and corresponding varaibles for cURL
*/
private function setSSL(&$curl_opt, $verifySSL){
$tlsVersion = $this->basecURL->versionOfTLS();
$versions = ['TLS 1.2', 'TLS 1.3'];
if(! in_array($tlsVersion, $versions)){
throw new SdkException("Error. Checking TLS 1.2/1.3 version failed. Please make sure your PHP cURL supports TLS 1.2/1.3");
}
$curl_opt[CURLOPT_SSL_VERIFYPEER] = true;
if($verifySSL){
$curl_opt[CURLOPT_SSL_VERIFYHOST] = 2;
Expand Down

0 comments on commit 91050cb

Please sign in to comment.