Skip to content

Commit

Permalink
Remove SSL Certificate from CURL_DEFAULTS (#288)
Browse files Browse the repository at this point in the history
* remove unnecessary ssl certificate

* fix travis

* extend timeout for composer deps

Co-authored-by: Aaron Marasco <[email protected]>
  • Loading branch information
aaronm67 and aaronm67 authored Apr 28, 2021
1 parent 1f3047f commit 4d3b0d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 50 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ cache:
directories:
- ./vendor

before_install:
- echo "xdebug.mode = 'coverage'" > config.ini
- phpenv config-add config.ini

install:
- composer install
- travis_wait 30 php composer.phar install

script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
Expand Down
47 changes: 0 additions & 47 deletions certificates/vimeo-api.pem

This file was deleted.

Binary file added composer.phar
Binary file not shown.
2 changes: 0 additions & 2 deletions src/Vimeo/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Vimeo
const VERSIONS_ENDPOINT = '/versions';
const VERSION_STRING = 'application/vnd.vimeo.*+json; version=3.4';
const USER_AGENT = 'vimeo.php 3.0.5; (http://developer.vimeo.com/api/docs)';
const CERTIFICATE_PATH = '/certificates/vimeo-api.pem';

/** @var array */
protected $_curl_opts = array();
Expand Down Expand Up @@ -72,7 +71,6 @@ public function __construct(string $client_id, string $client_secret, string $ac
CURLOPT_SSL_VERIFYPEER => true,
//Certificate must indicate that the server is the server to which you meant to connect.
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_CAINFO => realpath(__DIR__ .'/../..') . self::CERTIFICATE_PATH
);
}

Expand Down

0 comments on commit 4d3b0d7

Please sign in to comment.