title: I can't connect to google APIs with the PHP client library
body: <h1>I can't connect to google APIs with the PHP client library.</h1>
  
  <p>I started off with the getting started pages from google for a service account. but i'm stuck with this error witch doesnt reay tell me much about the problem </p>
  
  <p>I also tried version 2.1.3 of the library with the same result.</p>
  
  <p>here is my code.</p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', 1); error_reporting(E_ALL);
  require_once __DIR__ . '/../library/google-api-php-client-2.2.0/vendor/autoload.php';
  
  putenv('GOOGLE_APPLICATION_CREDENTIALS=./../secure/some-name-v2-cad7d18fcade.json');
  
  $client = new Google_Client();
  $client-&gt;useApplicationDefaultCredentials();
  
  $driveService = new Google_Service_Drive($client);
  
  $fileId = "0B9w-wSwYgo9ZU0toRFc3R1A5dlG";
  $optParams = array();
  $response = $driveService-&gt;files-&gt;get($fileId, $optParams); // Error on this line.
  
  var_dump($response);
  ?&gt;
  </code></pre>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Call to undefined function Firebase\JWT\openssl_sign() in 
    C:\www\library\google-api-php-client-2.2.0\vendor\firebase\php-jwt\src\JWT.php:196 </p>
    
    <p>Stack trace:</p>
    
    <p>#0 C:\www\library\google-api-php-client-2.2.0\vendor\firebase\php-jwt\src\JWT.php(167): 
    Firebase\JWT\JWT::sign('eyJ0eXAiOiJKV1Q...', '-----BEGIN PRIV...', 'RS256') </p>
    
    <p>#1 C:\www\library\google-api-php-client-2.2.0\vendor\google\auth\src\OAuth2.php(1267): 
    Firebase\JWT\JWT::encode(Array, '-----BEGIN PRIV...', 'RS256') </p>
    
    <p>#2 C:\www\library\google-api-php-client-2.2.0\vendor\google\auth\src\OAuth2.php(418): 
    Google\Auth\OAuth2->jwtEncode(Array, '-----BEGIN PRIV...', 'RS256') </p>
    
    <p>#3 C:\www\library\google-api-php-client-2.2.0\vendor\google\auth\src\OAuth2.php(451): 
    Google\Auth\OAuth2->toJwt() </p>
    
    <p>#4 C:\www in C:\www\library\google-api-php-client-2.2.0\vendor\firebase\php-jwt\src\JWT.php on line 196 </p>
  </blockquote>