Error content
file_get_contents(): SSL operation failed with code 1.OpenSSL Error messages:\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
This is related to the local environment. Whether SSL authentication is enabled
solution: modify the configuration or code
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$response = file_get_contents($url, false, stream_context_create($stream_opts));
Read More:
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- [Solved] cURL error 60: SSL certificate problem: unable to get local issuer certificate
- PHP curl error: SSL certificate problem: unable to get local issuer certificate settlement program
- [Solved] iis cURL error 60: SSL certificate problem: unable to get local issuer certificate
- [Solved] OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- [Solved] getObject: FAILED RequestCoreException: cURL resource: Resource id #78; cURL error: SSL certificate
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- [Solved] Laravel Upload Files Verificate Error: The file failed to upload.
- [Solved] laravel proc_get_status() has been disabled for security reasons
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory
- PHP: How to get the total number of data in the MySQL table (total number of rows)
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- PHP large file upload error 413: request entity too large [How to Solve]
- PHP: How to parse MHT file into HTML
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- [Solved] PHPMailer Failed to Send Email: SMTP Error: Could not connect to SMTP host.
- php Error: mail() Failed to connect to mailserver at “localhost” port 25
- php_network_getaddresses: getaddrinfo failed (How to Fix)