Skip to content

How to use CURLOPT_CAINFO #101

Closed
Closed
@ricardofarina96

Description

@ricardofarina96

For a application I'm developing i use the mailgun-php library for sending mails, but i keep getting cUrl error 60. After a quick search i discovered that i have to provide a certificate file. Which is set using the cUrl option CURLOPT_CAINFO. I found that these settings are set in RestClient.php and after testing with CURLOPT_SSL_VERIFYPEER => false it worked.

Configuring this option via Apache is not enough because i use a background queue-er to do the actual request to the mailgun API.

Is there a way to do this without changing the core files of the library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions