Situation:
- There is a site provider, which has a control panel with the ability to access through the API. Access to all this farm goes through the HTTPS protocol. The specific address of the entry point:
https://server158.hosting.reg.ru:1500/ispmgr - There is a PHP script that should access this control panel via API;
- (perhaps this is important) The script runs on the local computer in a Linux virtual machine. Runs as a console application;
- When trying to access through the script, we consistently have the error
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed - When trying to access via CURL from the command line of the same virtual machine and through the REST request debugger (from the same computer, but working outside the virtual machine), everything works without problems.
Has anyone cured something like that?