OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify f

SSL operation failed with code 1. OpenSSL Error messages:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

解决方案

1.服务器要下个根证书,跟服务端加密通信.


2.请求的时候绕过https


curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);  // RETURN THE CONTENTS OF THE CALL

    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

你可能感兴趣的:(JQUERY,PHP)