Skip to content

SSL: invalid CA certificate #1 (offset 0) in bundle #13

Description

@aaronpk

I get an error when trying to use the client: SSL: invalid CA certificate #1 (offset 0) in bundle. If I comment out the CURLOPT_CAINFO line then it works fine.

Activity

  1. milo commented on Apr 30, 2015

    @milo
    Owner

    Thank's for report. Which operation system do you use? Could you past me the var_dump(curl_version()) output?

  2. aaronpk commented on Apr 30, 2015

    @aaronpk
    Author

    Thanks! This is OSX 10.10.2, PHP 5.4.37.

    Array
    (
        [version_number] => 468225
        [age] => 3
        [features] => 33469
        [ssl_version_number] => 0
        [version] => 7.37.1
        [host] => x86_64-apple-darwin14.0
        [ssl_version] => SecureTransport
        [libz_version] => 1.2.5
        [protocols] => Array
            (
                [0] => dict
                [1] => file
                [2] => ftp
                [3] => ftps
                [4] => gopher
                [5] => http
                [6] => https
                [7] => imap
                [8] => imaps
                [9] => ldap
                [10] => ldaps
                [11] => pop3
                [12] => pop3s
                [13] => rtsp
                [14] => smtp
                [15] => smtps
                [16] => telnet
                [17] => tftp
            )
    )
    
  3. milo commented on Apr 30, 2015

    @milo
    Owner

    I'll check it during the weekend since I'm traveling. As a workaound, you can:

    let cURL use system CAs

    $client = new Milo\Github\Http\CurlClient([
        CURLOPT_CAINFO => NULL,  # should use system CA path
    ]);
    $api = new Milo\Github\Api($client);

    or install the Kdyby/CurlCaBundle and use

    CURLOPT_CAINFO => \Kdyby\CurlCaBundle\CertificateHelper::getCaInfoFile(),

    or temporarily disable CA check (insecure)

    CURLOPT_SSL_VERIFYPEER => 1,
  4. milo commented on May 7, 2015

    @milo
    Owner

    Funny bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions