• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

phpwordpresscurlphp-curl


PHP Snippet 1:

curl.cainfo = <absolute_path_to> cacert.pem

PHP Snippet 2:

curl_setopt ($ch, CURLOPT_CAINFO, dirname(__FILE__)."/cacert.pem");

Related Snippets

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

Why does array_map() with null as callback create an "array of arrays"?

How to display table header in every page using FPDF library?

Update Order custom Field value with WooCommerce REST API

Laravel Multi-language routes without prefix

PHP Warning: Module already loaded in Unknown on line 0

Lumen - Postgresql setup - Composer

How avoid Moved Permanently The document has moved here

Minimum order amount except for specific shipping method in WooCommerce

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Explain how this array transposing and flattening function works

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

Laravel/docker-compose/redis - Class 'Redis' not found

Laravel Livewire: jQuery not working in child component loaded via @if statement

Show only featured products in Woocommerce shop page

About Contact Privacy policy Terms and conditions