curl: (60) SSL certificate problem: certificate has expired

 curl: (60) SSL certificate problem: certificate has expired



curl -I --insecure https://www.onlinepng.com/rest/default/V1/products/attributes/metal_type


$curlMetal_Type = curl_init();


curl_setopt_array($curlMetal_Type, array(

    CURLOPT_URL => 'https://www.onlinepng.com/rest/default/V1/products/attributes/metal_type',

    CURLOPT_RETURNTRANSFER => true,

    CURLOPT_ENCODING => '',

    CURLOPT_MAXREDIRS => 10,

    CURLOPT_TIMEOUT => 0,

    CURLOPT_FOLLOWLOCATION => true,

    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

    CURLOPT_CUSTOMREQUEST => 'GET',

    CURLOPT_HTTPHEADER => array(

        'Authorization: Bearer 0ndxl4m7tb5thn284b2two596egtynsw'

    ),

    CURLOPT_SSL_VERIFYPEER => false, // Disable SSL certificate verification

));



this is added 

CURLOPT_SSL_VERIFYPEER => false, // Disable SSL certificate verification




Comments

Popular posts from this blog

how to install internet download manger in linux

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7