How to solve the problem of SSL operation failed with code 1. OpenSSL Error messages:?

When referring to functions also, () displays this error
Warning: also, (): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/docs/ on line 15

Warning: also, (): Failed to enable crypto in /var/www/docs/ on line 15

Warning: also( failed to open stream: operation failed in /var/www/docs/ on line 1

When approaching this picture
$url_file = '';
$expansion = also, ($url_file);
March 19th 20 at 08:37
1 answer
March 19th 20 at 08:39
The certificate does not pass validation. This happens usually for one reason - the CA that issued the certificate is not in the list of trusted root certificates. Solved by adding a certificate thereof signified in CA storage. How depends on the OS, Windows has its own methods, in Linux your.
Well, or to skip the validation and add the keys for the bypass if there are any.
The usual cause is a self-signed certificate or private CA. Or (which is quite rare) - received the certificate in CA, CA has casagnol, he was thrown from the trusted list.
How do I add the certificate in the store on Centos6 ? - davion_Padbe commented on March 19th 20 at 08:42
@davion_PadbeIn el6 it in /etc/pki/tls/certs . You need certificate of the CA that issued You the certificate (or the certificate itself, if it slobodjanyk) placed in this directory and create a symlink to it in the following way:
ln-s filename.crt `openssl x509 -hash-noout -in filename.crt`.0

where filename.crt file name of the certificate. - Lavern commented on March 19th 20 at 08:45

Find more questions by tags HostingPHP